about summary refs log tree commit diff
path: root/pkgs/desktops/pantheon
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2024-04-05 21:23:11 +0800
committerBobby Rong <rjl931189261@126.com>2024-04-05 21:23:11 +0800
commitbd3f680d370e43986224bf2b83047238f2bbd039 (patch)
treec1514164559498045039bc4d3f97914db0e5aecc /pkgs/desktops/pantheon
parentfd281bd6b7d3e32ddfa399853946f782553163b5 (diff)
pantheon.gala: Backport Wayland menu commit
gala-daemon actually needs a correct environment for `AppInfo.launch_default_for_uri`.
Diffstat (limited to 'pkgs/desktops/pantheon')
-rw-r--r--pkgs/desktops/pantheon/desktop/gala/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/desktops/pantheon/desktop/gala/default.nix b/pkgs/desktops/pantheon/desktop/gala/default.nix
index 123870c356de0..3cf8a67e9539b 100644
--- a/pkgs/desktops/pantheon/desktop/gala/default.nix
+++ b/pkgs/desktops/pantheon/desktop/gala/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch
 , nix-update-script
 , pkg-config
 , meson
@@ -39,6 +40,13 @@ stdenv.mkDerivation rec {
     # We look for plugins in `/run/current-system/sw/lib/` because
     # there are multiple plugin providers (e.g. gala and wingpanel).
     ./plugins-dir.patch
+
+    # Start gala-daemon internally (needed for systemd managed gnome-session)
+    # https://github.com/elementary/gala/pull/1844
+    (fetchpatch {
+      url = "https://github.com/elementary/gala/commit/351722c5a4fded46992b725e03dc94971c5bd31f.patch";
+      hash = "sha256-RvdVHQjCUNmLrROBZTF+m1vE2XudtQZjk/YW28P/vKc=";
+    })
   ];
 
   nativeBuildInputs = [
@@ -70,9 +78,6 @@ stdenv.mkDerivation rec {
   postPatch = ''
     chmod +x build-aux/meson/post_install.py
     patchShebangs build-aux/meson/post_install.py
-
-    # https://github.com/elementary/gala/issues/1826#issuecomment-1890461298
-    sed '2i Wants=io.elementary.gala.daemon@.service' -i 'data/gala@x11.service.in'
   '';
 
   passthru = {