[gdm: 1/2] gdm-{wayland, x}-session: allow users to overwrite environment



commit 2802e92d27450d86d81b6356dd532ec80e797223
Author: Daniel Otero <otero o daniel gmail com>
Date:   Sun Jun 2 02:32:54 2019 +0200

    gdm-{wayland,x}-session: allow users to overwrite environment
    
    This commit allows the user to full control over the session
    environment, not only allowing to add new variables but to replace
    existing ones. The most tipical use case is adding entries to the PATH.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736660

 daemon/gdm-wayland-session.c | 2 +-
 daemon/gdm-x-session.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-wayland-session.c b/daemon/gdm-wayland-session.c
index 35679b19..79922664 100644
--- a/daemon/gdm-wayland-session.c
+++ b/daemon/gdm-wayland-session.c
@@ -320,7 +320,7 @@ spawn_session (State        *state,
                                 continue;
                         }
 
-                        g_subprocess_launcher_setenv (launcher, environment_entry[0], environment_entry[1], 
FALSE);
+                        g_subprocess_launcher_setenv (launcher, environment_entry[0], environment_entry[1], 
TRUE);
                 }
 
                 /* Don't allow session specific environment variables from earlier sessions to
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index 58865a6c..9714da3e 100644
--- a/daemon/gdm-x-session.c
+++ b/daemon/gdm-x-session.c
@@ -635,7 +635,7 @@ spawn_session (State        *state,
                                 continue;
                         }
 
-                        g_subprocess_launcher_setenv (launcher, environment_entry[0], environment_entry[1], 
FALSE);
+                        g_subprocess_launcher_setenv (launcher, environment_entry[0], environment_entry[1], 
TRUE);
                 }
 
                 /* Don't allow session specific environment variables from earlier sessions to


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