summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/3.16/core/gdm/sessions_dir.patch
blob: b8fbad4d731d0e72631e7eefaf4510658c9866a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index f759d2d..d154716 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -373,9 +373,12 @@ get_system_session_dirs (void)
 #ifdef ENABLE_WAYLAND_SUPPORT
                 DATADIR "/wayland-sessions/",
 #endif
+                NULL,
                 NULL
         };
 
+        search_dirs[4] = getenv("GDM_SESSIONS_DIR") != NULL ? getenv("GDM_SESSIONS_DIR") : NULL;
+
         return search_dirs;
 }