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
323 stars 23 forks source link

Error loading tophat extension: Clutter typelib file not found #125

Open Spockologist opened 3 months ago

Spockologist commented 3 months ago

Description

When attempting to access the settings of the tophat extension, an error is thrown related to the Gnome Shell's Clutter library. It seems that the typelib file for Clutter is not found, which is required for the extension to function properly.

Error Message

The following error message is displayed: Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack Trace

The issue can be traced back to the following 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

Steps to Reproduce

  1. Install the tophat extension from the Gnome Extensions website or via the Gnome Tweak Tool.
  2. Attempt to open the settings for the tophat extension.
  3. The error message appears and settings cannot be accessed.

Expected Behavior

The settings dialog for the tophat extension should open without any errors.

Actual Behavior

An error message is displayed and the settings cannot be accessed due to a missing Clutter typelib file.

System Information


Please let me know if you need any further information or if there are any known workarounds for this issue.

Thank you for your assistance!

nongthaihoang commented 2 months ago

sudo apt install gir1.2-gtkclutter-1.0

am3y commented 2 months ago

sudo apt install gir1.2-gtkclutter-1.0

Which package to install for Fedora ? I'm getting the same issues on Fedora 40

UniqueTokens commented 2 months ago

On Fedora 40:

sudo dnf install clutter-gtk

xChAmeLIoNz commented 1 month ago

After installing, it needs a restart in order to work.

kangalio commented 1 month ago

Can a GNOME extension declare external dependencies like this? If so, it would be very neat to have that.

If not, maybe tophat could somehow catch this error and add its own message that either links to this issue or suggests the clutter installation command-lines for a few common distros