NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

Gnome extensions load error #236608

Open alsvartr opened 1 year ago

alsvartr commented 1 year ago

Describe the bug

After updating to 23.05, many gnome extensions not loaded with following error:

Requiring Gtk, version 3.0: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

Extension example: https://extensions.gnome.org/extension/1287/unite/ From syslog:

2023-06-08T10:36:57.867704+03:00 aske .gnome-shell-wr[3167]: JS ERROR: Extension unite@hardpixel.eu: Error: Requiring Gtk, version 3.0: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded#012@/hom e/alsvartr/.local/share/gnome-shell/extensions/unite@hardpixel.eu/overrides/layout.js:1:21#012inject@/home/alsvartr/.local/share/gnome-shell/extensions/unite@hardpixel.eu/overrides/helper.js:50:17#012AppMenuIcon@/ home/alsvartr/.local/share/gnome-shell/extensions/unite@hardpixel.eu/layout.js:99:14#012add@/home/alsvartr/.local/share/gnome-shell/extensions/unite@hardpixel.eu/handlers.js:225:21#012_init@/home/alsvartr/.local/s hare/gnome-shell/extensions/unite@hardpixel.eu/layout.js:212:21#012UniteLayoutManager@/home/alsvartr/.local/share/gnome-shell/extensions/unite@hardpixel.eu/layout.js:207:3#012_init@/home/alsvartr/.local/share/gnom e-shell/extensions/unite@hardpixel.eu/extension.js:13:28#012UniteExtension@/home/alsvartr/.local/share/gnome-shell/extensions/unite@hardpixel.eu/extension.js:10:3#012enable@/home/alsvartr/.local/share/gnome-shell/ extensions/unite@hardpixel.eu/extension.js:44:18#012_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:196:38#012loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:398:32#012async _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:677:24#012async_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:683:48#012_sessionUpdated@resource:///org/gnome/shell/ui/ext ensionSystem.js:718:20#012async*init@resource:///org/gnome/shell/ui/extensionSystem.js:59:14#012_initializeUI@resource:///org/gnome/shell/ui/main.js:311:22#012start@resource:///org/gnome/shell/ui/main.js:186:5#012 @resource:///org/gnome/shell/ui/init.js:6:17

Steps To Reproduce

  1. install https://extensions.gnome.org/extension/1287/unite/

Screenshot

unite

Metadata

» nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.31-xanmod1, NixOS, 23.05 (Stoat), 23.05.589.a558f7ac29f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(alsvartr): `""`
 - channels(root): `"nixos-23.05, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Notify maintainers

@rhoriguchi

rhoriguchi commented 1 year ago

Any idea what's wrong? @jtojnar @piegamesde

jtojnar commented 1 year ago

Did you install it with the Nix package or the extension website?

Executing nix-env -f . -iA gnomeExtensions.unite and then restarting GNOME Shell worked flawlessly for me, while the website failed it to even get it installed:

Error while installing unite@hardpixel.eu: Failed to execute child process “glib-compile-schemas” (No such file or directory)

We probably need to patch GNOME Shell to be able to find glib-compile-schemas, for the reasons mentioned in #235948.

alsvartr commented 1 year ago

Did you install it with the Nix package or the extension website?

Tried both variants. Now I have

environment.systemPackages = with pkgs; [ gnomeExtensions.dash-to-dock gnomeExtensions.openweather gnomeExtensions.unite ];

koppor commented 8 months ago

I have the system packages with 'gnomeExtensions.unite- and it works withunstable` as of today.