fflewddur / tophat

View CPU, memory, disk, and network activity in the GNOME top bar.
https://extensions.gnome.org/extension/5219/tophat/
GNU General Public License v3.0
349 stars 26 forks source link

Preferences page crashes on Fedora 40 #137

Closed OskarTDI closed 2 weeks ago

OskarTDI commented 4 months ago

The settings of extension tophat@fflewddur.github.io had an error:


Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack trace:
  require@resource:///org/gnome/gjs/modules/esm/gi.js:16:28
  @gi://Clutter/:3:25
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

![Bildschirmfoto vom 2024-07-28 10-43-10](https://github.com/user-attachments/assets/13b213b9-5a98-4429-944b-96ffc6057897)
![Bildschirmfoto vom 2024-07-28 10-46-57](https://github.com/user-attachments/assets/2d38d9cf-308c-40c9-9fbb-90add7ce0a22)

![Bildschirmfoto vom 2024-07-28 10-48-56](https://github.com/user-attachments/assets/e86a920b-3665-420d-b26b-95a6861efc09)
flurdy commented 4 months ago

Doing a sudo dnf install cutter did solve the problem for me

OskarTDI commented 4 months ago

cslab@fedora-eloov0c:~$ sudo dnf install cutter [sudo] Password for cslab: Last check for expired metadata: before 0:01:24 on Mon 29 Jul 2024 06:46:31 CEST. No match for arguments: cutter Error: No match found: cutter

cslab@fedora-eloov0c:~$ sudo dnf install cutter [sudo] Passwort für cslab: RPM Fusion for Fedora 40 - Nonfree 160 kB/s | 69 kB 00:00
RPM Fusion for Fedora 40 - Nonfree - Updates 51 kB/s | 21 kB 00:00
No match for arguments: cutter Error: No match found: cutter

sarowarhosen03 commented 3 months ago

same issu faced on ubutnu Screenshot from 2024-07-30 21-38-42

ryd3v commented 3 months ago

Same

The settings of extension tophat@fflewddur.github.io had an error:

Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack trace:
  require@resource:///org/gnome/gjs/modules/esm/gi.js:16:28
  @gi://Clutter/:3:25
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

trying to install clutter does not work.

juanlufont commented 3 months ago

Same problem in Debian Trixie (current testing) and Gnome 46

I solved the problem by installing the package gir1.2-gtkclutter-1.0:

I got the solution from a similar issue: https://github.com/yozoon/gnome-shell-extension-blyr/issues/21

I guess there may be an equivalent package for Fedora et al.

ryd3v commented 3 months ago

Same problem in Debian Trixie (current testing) and Gnome 46

I solved the problem by installing the package gir1.2-gtkclutter-1.0:

  • apt install gir1.2-gtkclutter-1.0
  • logout from the current Gnome session

I got the solution from a similar issue: yozoon/gnome-shell-extension-blyr#21

I guess there may be an equivalent package for Fedora et al.

This won't work for Fedora though ...

ryd3v commented 3 months ago

Doing a sudo dnf install cutter did solve the problem for me

isn't clutter and cutter 2 different packages?

ryd3v commented 3 months ago

sudo dnf install clutter.x86_64 has fixed it for me.

[~]$ dnf search clutter

OskarTDI commented 3 months ago

Doing a sudo dnf install clutter.x86_64 did solve the problem for me. Thank you

vadi2 commented 3 months ago

sudo apt install gir1.2-gtkclutter-1.0 solved it for me on Ubuntu 24.04, thanks!

It looks like clutter has been discontinued upstream: https://blogs.gnome.org/clutter.

ryd3v commented 3 months ago

sudo apt install gir1.2-gtkclutter-1.0 solved it for me on Ubuntu 24.04, thanks!

It looks like clutter has been discontinued upstream: https://blogs.gnome.org/clutter.

This thread is for Fedora though, but glad you got it sorted out xD

honnip commented 3 months ago

This is because clutter is imported in the context of prefs.js. More specifically, prefs.js imports lib/shared.js, which imports the clutter.

fflewddur commented 1 month ago

Apologies for the confusion here. I've added instructions to the readme for installing the clutter dependency; I'll try to remove the need for that dependency in a future release.

fflewddur commented 2 weeks ago

The development version of TopHat no longer needs the clutter dependency, so I'm closing this issue.