summaryrefslogtreecommitdiff
path: root/data/PreSession.in
diff options
context:
space:
mode:
authorBrian Cameron <Brian.Cameron@sun.com>2010-01-13 12:21:58 -0500
committerRay Strode <rstrode@redhat.com>2010-01-13 12:21:58 -0500
commite33ee9d9b23c103ac25b6fdb53fe8c074de0de53 (patch)
treeb5606f80ec2ff93e252a611fa7d5fa2b5461ca7a /data/PreSession.in
parentc249a06a8ca772051c17cef7c9c115e027146bea (diff)
downloadgdm-e33ee9d9b23c103ac25b6fdb53fe8c074de0de53.tar.gz
Run PostLogin script as normal user
1) In daemon/gdm-slave.c it now sets PATH to GDM_SESSION_DEFAULT_PATH so that the scripts have the system normal PATH when run. This is much better than hardcoding the PATH in the scripts themselves, especially since the Init, PreSession, PostSession, and PostLogin scripts are designed to run per-display and it makes things just complicated if users need to add the common system path to any per-display script they might want to use. 2) The Init and PreSession scripts are fixed to set the PATH to "@X_PATH:$PATH" and not add "/bin:/usr/bin" since this isn't neeed since PATH is already set to GDM_SESSION_DEFAULT_PATH before running the script. See https://bugzilla.gnome.org/show_bug.cgi?id=602403
Diffstat (limited to 'data/PreSession.in')
-rwxr-xr-xdata/PreSession.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/PreSession.in b/data/PreSession.in
index 6f31d3d9..cfabee75 100755
--- a/data/PreSession.in
+++ b/data/PreSession.in
@@ -6,4 +6,4 @@
#
# Note that output goes into the .xsession-errors file for easy debugging
#
-PATH="@X_PATH@:$PATH:/bin:/usr/bin"
+PATH="@X_PATH@:$PATH"