[pkg-fso-commits] [SCM] Debian specific session starter branch, master, updated. debian/0.3-4-g78ecbe5

Joachim Breitner mail at joachim-breitner.de
Thu Sep 4 14:53:16 UTC 2008


The following commit has been merged in the master branch:
commit 78ecbe5f763ded6345d96dde9b01941415c1e357
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Thu Sep 4 16:52:15 2008 +0200

    Start xinit inside su
    
    Otherwise:
     * xinit thinks it’s ran for root (if $USER is something else)
     * su without -p forgets DISPLAY
     * su with -p does not override HOME, and does not do cd ~

diff --git a/zhone-session.init b/zhone-session.init
index 4c77c60..402d2f8 100644
--- a/zhone-session.init
+++ b/zhone-session.init
@@ -39,7 +39,7 @@ USER=root
 case "$1" in
     start)
         [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
-        start-stop-daemon --start --pidfile ${PIDFILE} --make-pidfile --background --exec ${PROG_XINIT} -- /bin/su --login --preserve-environment --command "${PROG_XSESSION} ${PROG_FSO}" $USER -- $X_OPTIONS
+        start-stop-daemon --start --pidfile ${PIDFILE} --make-pidfile --background --exec /bin/su -- --login --command "${PROG_XINIT} ${PROG_XSESSION} ${PROG_FSO} -- $X_OPTIONS" $USER
         [ "$VERBOSE" != no ] && log_end_msg $?
         ;;
     stop)

-- 
Debian specific session starter



More information about the pkg-fso-commits mailing list