Installing gnome system-monitor

I’m running gnome 3.34.4. I tried installing this extension by flipping the switch:

but get the error Please install libgtop, network manager, and gir bindings.

I tried installing into my local nix-env: gnomeExtensions.system-monitor (nixpkgs/default.nix at 33b5621ef6640b6852989eda6616b24d03b42037 · NixOS/nixpkgs · GitHub) but it didn’t seem to have any effect on the system and “flipping the switch” still failed. On reboot, I got the above error immediately.

Finally, I tried installing adjacently into the nix-env the dependencies of the above nixpkg, but that failed as well (got the same error).

Is this related? Recommended way to add Gnome extensions

In the meantime, for others facing this issue, the less-capable extension Vitals Vitals - GNOME Shell Extensions works great.

Did you uninstall the extension installed through the extension portal? It might be clashing.

Another issue might be that when you install extension through Nix, GNOME Shell might not notice until you restart it. (press Alt-F2 and enter r on XOrg, log out on Wayland).

Though, in this case, looking in the systemd journal, it appears that the extension is actually broken due to changes in GNOME Shell:

JS ERROR: Extension Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?

We even marked it as broken, only little too late for the change to be included in 20.04:

gnomeExtensions.system-monitor: unbreak with newer GNOME Shell by jtojnar · Pull Request #92886 · NixOS/nixpkgs · GitHub unbreaks the package.

1 Like