Small change to call to startx, run in subshell. Previous solution failed to start on my setup (Ubuntu 12.10).
This commit is contained in:
parent
0d7655d5b0
commit
3c8e2bab14
@ -76,8 +76,7 @@ if $consolekit; then
|
|||||||
dbuspid=$(<"$dbuspidfifo"); rm -f "$dbuspidfifo"
|
dbuspid=$(<"$dbuspidfifo"); rm -f "$dbuspidfifo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Conform to POSIX and do not use `>&' here.
|
$(setsid startx "$@" > /dev/null 2>&1) &
|
||||||
setsid startx "$@" > /dev/null 2>&1 &
|
|
||||||
|
|
||||||
# If wait(1) returns with a value >128, it was interrupted by kill(1),
|
# If wait(1) returns with a value >128, it was interrupted by kill(1),
|
||||||
# so registration was sucessful.
|
# so registration was sucessful.
|
||||||
|
Loading…
Reference in New Issue
Block a user