-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
gnome-shell-extensions-3.28 are broken on unstable #38377
Comments
The
As for the |
You're able to switch switch themes in I'll submit a PR fixing the schemas at least. |
Testing out a fix for |
Hmm, I can enable it but the theme switching does not work. I seems to require the extension schemas in |
We might want to add
--- a/pkgs/desktops/gnome-3/core/gnome-shell-extensions/default.nix
+++ b/pkgs/desktops/gnome-3/core/gnome-shell-extensions/default.nix
@@ -21,6 +21,26 @@
nativeBuildInputs = [ meson ninja pkgconfig gettext glib ];
buildInputs = [ spidermonkey_52 ];
+ postInstall = let
+ extensionsWithSchemas = [
+ "auto-move-windows"
+ "example"
+ "native-window-placement"
+ "screenshot-window-sizer"
+ "user-theme"
+ "window-list"
+ ];
+ in ''
+ for e in ${stdenv.lib.concatStringsSep " " extensionsWithSchemas}; do
+ schemadir="$out/share/gnome-shell/extensions/''${e}@gnome-shell-extensions.gcampax.github.com/schemas"
+ mkdir "$schemadir"
+ mv "$out/share/glib-2.0/schemas/org.gnome.shell.extensions.''${e}.gschema.xml" "$schemadir"
+ glib-compile-schemas "$schemadir"
+ done
+ ln -s "$out/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/schemas/org.gnome.shell.extensions.user-theme.gschema.xml" $out/share/glib-2.0/schemas
+ glib-compile-schemas $out/share/glib-2.0/schemas
+ '';
+
mesonFlags = [ "-Dextension_set=all" ];
meta = with stdenv.lib; {
|
Your suggested fix worked for I went with basically adding the code from Tested things out in a vm with bash, and I should've got everything now, will submit a PR :) |
I think it only works in bash and globally installed packages or something. I would not rely on it since I consider it an ugly impurity. I would prefer the first solution since it will be the cleanest and could be possibly automated in the future, but number two is fine too. |
Issue description
The meson build doesn't compile the schemas, opting to do it instead in a package shell script. Unfortunately it seems that compiling the schemas aren't enough to make all the extensions work. In particular at least
user-theme
andapps-menu
still won't work (seems to fixwindow-list
though).With the schemas installed Tweaks simply complains that the
user-theme
extension is incorrectly installed.apps-menu
complains about lacking any typelib file forGMenu
.I'm not sure how well these extensions worked before 3.28, but a report on irc indicated that
user-theme
at least worked before.cc @jtojnar
Steps to reproduce
Run Tweaks on nixos-unstable, try to enable eg. the
User Themes
extension underExtensions
orApplications Menu
.Technical details
Running a schema fix on top of 80e730c
"x86_64-linux"
Linux 4.15.14, NixOS, 18.09.git.e1635e06580 (Jellyfish)
yes
yes
nix-env (Nix) 2.0
"unstable-18.03pre126246.a4f433c03cc"
"nixos-17.09.2498.a9ffb7b0b5a"
/home/hed/nixpkgs/channel
The text was updated successfully, but these errors were encountered: