paradoxxxzero / gnome-shell-system-monitor-applet

Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…
GNU General Public License v3.0
1.75k stars 324 forks source link

App not working on ubuntu 20.04.02 LTS #707

Closed silencify closed 2 years ago

silencify commented 3 years ago

I have run the command. But the applet is not showing up. I was using it in the Ubuntu 18.04 and it was working fine. This is one of the best applet I have used. Thanks. My system is:

OS Name - Ubuntu 20.04.2 LTS OS Type - 64-bit GNOME Version - 3.36.8 Windowing System X11

mhow2 commented 3 years ago

I can confirm that. Here is what I can find in system logs when enable the extensions:

Aug 5 08:41:25 martin-ThinkPad-T420 gnome-shell[2003]: [System monitor] applet enabling Aug 5 08:41:25 martin-ThinkPad-T420 gnome-shell[2003]: JS ERROR: Extension system-monitor@paradoxxx.zero.gmail.com: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?#012SystemMonitor_smDialog@/home/martin/.local/share/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com/extension.js:286:9#012enable@/home/martin/.local/share/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com/extension.js:2309:23#012_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:167:32#012loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:351:26#012callback@resource:///org/gnome/shell/ui/extensionDownloader.js:234:39#012gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13

chrisspen commented 3 years ago

This seems to be a bug in the code that breaks the extension when Wayland's enabled. I was able to get the extension to work in 20.04 by disabling Wayland, rebooting, and then checking out the repo and running make install, followed by a alt+f2 rto reload.

That's not an ideal solution, but that's one workaround for now.

Nhat-Thanh commented 2 years ago

26/01/2022

I'm also using Ubuntu 20.04 LTS, I installed libgtop2-dev package and it fixed this error at all

tejaskale commented 2 years ago

FYI : after installing required libraries, logout and back in ( especially if you are using wayland ; "r" might work on X11 ) to properly restart gnome-shell.

silencify commented 2 years ago

@chrisspen Thanks it solved the issue. Please refer https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/707#issuecomment-980459788

mbana commented 2 years ago

26/01/2022

I'm also using Ubuntu 20.04 LTS, I installed libgtop2-dev package and it fixed this error at all

Same here.

On Ubuntu 22.04.1 under Wayland installing libgtop2-dev did the trick:

sudo apt-get install gir1.2-gtop-2.0 gir1.2-nm-1.0 gir1.2-clutter-1.0 gnome-system-monitor gir1.2-gtop-2.0 gir1.2-nm-1.0 gir1.2-clutter-1.0 gnome-system-monitor gir1.2-gtop-2.0 gir1.2-nm-1.0 gnome-system-monitor libgtop2-dev
pabloab commented 2 years ago

apt install libgtop2-dev worked under Pop 22.04 with x11, using mgalgs's fork.