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

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

The following commit has been merged in the master branch:
commit 148328125010db0e703f71cd6d7c11bb79d04e0f
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Thu Sep 4 16:25:44 2008 +0200

    Use su -l to start session
    This make sure that the pam initialization is happening. The service is
    of course “su”, this could be improved. Changing the user to a non-root
    user is supported by this script, although not yet in zhone.

diff --git a/zhone-session.init b/zhone-session.init
index 2e3145f..fd8d97b 100644
--- a/zhone-session.init
+++ b/zhone-session.init
@@ -20,6 +20,7 @@ PROG_XINIT=/usr/bin/xinit
 X_OPTIONS="vt4 -nolisten tcp"
 # Gracefully exit if the package or its dependencies have been removed (but not purged).
@@ -35,7 +36,7 @@ PIDFILE=${PIDDIR}/${NAME}.pid
 case "$1" in
         [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
-        start-stop-daemon --start --pidfile ${PIDFILE} --make-pidfile --background --exec ${PROG_XINIT} -- ${PROG_XSESSION} ${PROG_FSO} -- $X_OPTIONS
+        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
         [ "$VERBOSE" != no ] && log_end_msg $?

Debian specific session starter

More information about the pkg-fso-commits mailing list