Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Spockologist opened this issue Apr 2, 2024 · 6 comments
Closed

Comments

@Spockologist
Copy link

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

  • Gnome Shell Version: 45.2
  • tophat Extension Version: Current
  • Distribution: Ubuntu 23.10
  • Installation method of extension: Gnome Extensions website

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
Copy link

sudo apt install gir1.2-gtkclutter-1.0

@ghost
Copy link

ghost commented Apr 25, 2024

sudo apt install gir1.2-gtkclutter-1.0

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

@UniqueTokens
Copy link

On Fedora 40:

sudo dnf install clutter-gtk

@xChAmeLIoNz
Copy link

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

@kangalio
Copy link

kangalio commented Jun 3, 2024

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

@fflewddur
Copy link
Owner

I've removed the clutter dependency, so this shouldn't be a problem for future releases of TopHat. Thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants