[gdm/disable-hybrid-nvidia: 5/20] launch-environment: add DATADIR to XDG_DATA_DIRS




commit 22750723aac0219ad8dc4363cb0e86d09c5b745d
Author: Naïm Favier <n monade li>
Date:   Sat Jan 15 20:53:45 2022 +0100

    launch-environment: add DATADIR to XDG_DATA_DIRS
    
    so that gnome-session finds gnome-login.session

 daemon/gdm-launch-environment.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c
index 14ecfac2d..932c3e8a9 100644
--- a/daemon/gdm-launch-environment.c
+++ b/daemon/gdm-launch-environment.c
@@ -53,7 +53,6 @@
 #define INITIAL_SETUP_USERNAME "gnome-initial-setup"
 #define GDM_SESSION_MODE "gdm"
 #define INITIAL_SETUP_SESSION_MODE "initial-setup"
-#define GNOME_SESSION_SESSIONS_PATH DATADIR "/gnome-session/sessions"
 
 extern char **environ;
 
@@ -240,8 +239,9 @@ build_launch_environment (GdmLaunchEnvironment *launch_environment,
 
         g_hash_table_insert (hash,
                              g_strdup ("XDG_DATA_DIRS"),
-                             g_strdup_printf ("%s:%s",
+                             g_strdup_printf ("%s:%s:%s",
                                               DATADIR "/gdm/greeter",
+                                              DATADIR,
                                               system_data_dirs));
         g_free (system_data_dirs);
 


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