From 616dc4397f02cde9cf3bde22b383f44582163db2 Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Sun, 12 Dec 2021 17:54:30 -0500 Subject: 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 --- gnu/packages/patches/gdm-default-session.patch | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/gdm-default-session.patch b/gnu/packages/patches/gdm-default-session.patch index 3ff8d0da7c..8325b6102b 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 . --- 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 . + "/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 . 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); -- cgit v1.2.3