summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/3.22/core/gdm/sessions_dir.patch
blob: 9714a68600af6fe35ec08dd9b0c5801409307228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/daemon/gdm-session.c.orig b/daemon/gdm-session.c
index b839fea..053d4ac 100644
--- a/daemon/gdm-session.c.orig
+++ b/daemon/gdm-session.c
@@ -344,12 +344,16 @@ get_system_session_dirs (GdmSession *self)
 #ifdef ENABLE_WAYLAND_SUPPORT
                 DATADIR "/wayland-sessions/",
 #endif
+                "/var/empty",
                 "/etc/X11/sessions/",
                 DMCONFDIR "/Sessions/",
                 DATADIR "/gdm/BuiltInSessions/",
                 DATADIR "/xsessions/",
                 NULL
         };
+        if (getenv("GDM_SESSIONS_DIR") != NULL) {
+                search_dirs[1] = getenv("GDM_SESSIONS_DIR");
+        };
 
 #ifdef ENABLE_WAYLAND_SUPPORT
         if (self->priv->ignore_wayland) {