guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 1a415fda3e0d3a8d41184716ae2f6b6d9e643f2d
Author: Noé Lopez <[email protected]>
AuthorDate: Thu Oct 1 20:46:53 2026 +0200

    gnu: gnome-shell: Replace systemd-notify with gherd.
    
    This is needed to wait for mutter to have set its environment variables 
before
    having gnome-session-shepherd start the other services.
    
    * gnu/packages/gnome.scm (gnome-shell): Add patch.
    * gnu/packages/patches/gnome-shell-notify-gnome-session.patch: New file.
    
    Change-Id: Ibed75b095d955bfd8b409088f6867f46f4db7586
    Signed-off-by: Noé Lopez <[email protected]>
---
 gnu/packages/gnome.scm                             |  3 +-
 .../patches/gnome-shell-notify-gnome-session.patch | 38 ++++++++++++++++++++++
 2 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 42bd5727ac6..289fa23c3b2 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9408,7 +9408,8 @@ properties, screen resolution, and other GNOME 
parameters.")
                (base32
                 "022vb4y0ri7ws6l1ghx63vxi9xhi6r0hfrsg257i230ly2i0qvwx"))
               (patches
-               (search-patches "gnome-shell-restore-desktop-file.patch"))))
+               (search-patches "gnome-shell-restore-desktop-file.patch"
+                               "gnome-shell-notify-gnome-session.patch"))))
     (outputs '("out" "debug"))
     (build-system meson-build-system)
     (arguments
diff --git a/gnu/packages/patches/gnome-shell-notify-gnome-session.patch 
b/gnu/packages/patches/gnome-shell-notify-gnome-session.patch
new file mode 100644
index 00000000000..8284519bd2a
--- /dev/null
+++ b/gnu/packages/patches/gnome-shell-notify-gnome-session.patch
@@ -0,0 +1,38 @@
+From 5fd76cbd7ddd38abfa9ba08d6a804591ddab101e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?No=C3=A9=20Lopez?= <[email protected]>
+Date: Thu, 17 Sep 2026 23:23:34 +0200
+Subject: [PATCH] Notify gnome-session when startup is done.
+
+This is needed to wait for mutter to have set its environment variables before
+having gnome-session-shepherd start the other services.
+
+We simply replace systemd-notify with gherd’s notification mechanism.
+
+See also (gnome-session-shepherd)Notifications.
+
+Upstream-Status: Not applicable.
+---
+ src/shell-util.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/src/shell-util.c b/src/shell-util.c
+index a965c7148..52b030cc8 100644
+--- a/src/shell-util.c
++++ b/src/shell-util.c
+@@ -772,9 +772,10 @@ shell_util_systemd_unit_exists_finish (GAsyncResult  *res,
+ void
+ shell_util_sd_notify (void)
+ {
+-  /* We only use NOTIFY_SOCKET exactly once; unset it so it doesn't remain in
+-   * our environment. */
+-  sd_notify (1, "READY=1");
++  if (-1 == system ("gherd notify gnome-session-meta org.gnome.Shell"))
++  {
++    g_warning ("Failed to notify gnome-session.");
++  }
+ }
+ 
+ /**
+-- 
+2.54.0
+

Reply via email to