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

Preferences page crashes on Ubuntu 24.04 #135

Closed
ashwinikd opened this issue Jul 13, 2024 · 4 comments
Closed

Preferences page crashes on Ubuntu 24.04 #135

ashwinikd opened this issue Jul 13, 2024 · 4 comments

Comments

@ashwinikd
Copy link

Preference window crashes on clicking preferences icon from both top bar and extension manager list. The error is pasted below:

The settings of extension [email protected] had an error:

SyntaxError: import declarations may only appear at top level of a module @ resource:///org/gnome/Shell/Extensions/js/misc/extensionUtils.js:4:0

Stack trace:
  @file:///home/ashwini/.local/share/gnome-shell/extensions/[email protected]/prefs.js:24:24
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
  

Screenshot of the window:
image

System information:

  • OS: Ubuntu 24.04
  • Kernel: Linux 6.8.0-38-generic
  • Gnome Shell: 46.0
@dennisameling
Copy link

I ran into the same issue on Ubuntu 24.04. Showing the Technical Details revealed some more details:

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
  

So I ran this to install Clutter:

sudo apt install gir1.2-clutter-1.0

Then did a system restart, and the preferences page now works correctly 🎉

@ashwinikd
Copy link
Author

ashwinikd commented Jul 14, 2024

Thanks. Installing clutter resolves the issue. Is this included somewhere in the docs? This was working correctly on 23.04 and did not work out of the box on 24.04.

BTW, did not require a system restart for me. Worked as soon as clutter was installed.

@SylChamber
Copy link

Same here, no restart necessary. Ubuntu 24.04.

@fflewddur
Copy link
Owner

I've added the gir1.2-clutter-1.0 dependency to the installation docs. I'll close this issue as a duplicate of #137, and will use that issue to track work on removing the need for this dependency.

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

4 participants