guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: gdm: Discover installed Wayland sessions.


From: guix-commits
Subject: branch master updated: gnu: gdm: Discover installed Wayland sessions.
Date: Wed, 15 Dec 2021 10:39:32 -0500

This is an automated email from the git hooks/post-receive script.

samplet pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 616dc43  gnu: gdm: Discover installed Wayland sessions.
616dc43 is described below

commit 616dc4397f02cde9cf3bde22b383f44582163db2
Author: Timothy Sample <samplet@ngyro.com>
AuthorDate: Sun Dec 12 17:54:30 2021 -0500

    gnu: gdm: Discover installed Wayland sessions.
    
    * gnu/packages/patches/gdm-default-session.patch: Make GDM look in
    the system profile for the "wayland-sessions" directory.
    
    Reported-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 gnu/packages/patches/gdm-default-session.patch | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/patches/gdm-default-session.patch 
b/gnu/packages/patches/gdm-default-session.patch
index 3ff8d0d..8325b61 100644
--- a/gnu/packages/patches/gdm-default-session.patch
+++ b/gnu/packages/patches/gdm-default-session.patch
@@ -6,7 +6,7 @@ and not in the directories listed in $XDG_DATA_DIRS.  The 
latter includes
 Fixes <https://bugs.gnu.org/37831>.
 --- a/daemon/gdm-session.c     2021-07-23 15:16:15.164201000 +0000
 +++ b/daemon/gdm-session.c     2021-09-26 08:18:58.730134555 +0000
-@@ -354,13 +354,12 @@
+@@ -354,25 +354,19 @@
          GArray *search_array = NULL;
          char **search_dirs;
          int i;
@@ -20,8 +20,9 @@ Fixes <https://bugs.gnu.org/37831>.
 +                "/run/current-system/profile/share/xsessions/",
          };
  
-         static const char *wayland_search_dir = DATADIR "/wayland-sessions/";
-@@ -368,11 +367,6 @@
+-        static const char *wayland_search_dir = DATADIR "/wayland-sessions/";
++        static const char *wayland_search_dir = 
"/run/current-system/profile/share/wayland-sessions/";
+ 
          search_array = g_array_new (TRUE, TRUE, sizeof (char *));
  
          if (type == NULL || g_str_equal (type, "x11")) {
@@ -53,7 +54,7 @@ Fixes <https://bugs.gnu.org/37831>.
 diff -ur a/libgdm/gdm-sessions.c b/libgdm/gdm-sessions.c
 --- a/libgdm/gdm-sessions.c    2019-10-07 04:53:35.000000000 -0400
 +++ b/libgdm/gdm-sessions.c    2020-04-18 18:31:42.491348691 -0400
-@@ -245,19 +245,12 @@
+@@ -245,35 +245,23 @@
                  "/etc/X11/sessions/",
                  DMCONFDIR "/Sessions/",
                  DATADIR "/gdm/BuiltInSessions/",
@@ -74,7 +75,12 @@ diff -ur a/libgdm/gdm-sessions.c b/libgdm/gdm-sessions.c
          for (i = 0; i < G_N_ELEMENTS (xorg_search_dirs); i++) {
                  g_ptr_array_add (xorg_search_array, g_strdup 
(xorg_search_dirs[i]));
          }
-@@ -269,11 +262,6 @@
+ 
+ #ifdef ENABLE_WAYLAND_SUPPORT
+         const char *wayland_search_dirs[] = {
+-                DATADIR "/wayland-sessions/",
++                "/run/current-system/profile/share/wayland-sessions/",
+         };
  
          wayland_search_array = g_ptr_array_new_with_free_func (g_free);
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]