Added option to disable use of consolekit

pull/3/head
Ghost1227 15 years ago
parent 63221aade5
commit 0679782c51

@ -241,17 +241,17 @@ xstart() {
serverargs=":${display} ${serverargs} vt$((xtty+display))"
if $(checkyesno loginshell); then
# if [[ ${wm_bin} == "gnome-session" ]]; then
if $(checkyesno consolekit); then
nohup ck-launch-session bash --login -c "startx $wm_bin -- ${serverargs}" &> /dev/null &
# else
# nohup bash --login -c "startx $wm_bin -- ${serverargs}" &> /dev/null &
# fi
else
nohup bash --login -c "startx $wm_bin -- ${serverargs}" &> /dev/null &
fi
else
# if [[ ${wm_bin} == "gnome-session" ]]; then
if $(checkyesno consolekit); then
nohup ck-launch-session startx $wm_bin -- ${serverargs} &> /dev/null &
# else
# nohup startx $wm_bin -- ${serverargs} &> /dev/null &
# fi
else
nohup startx $wm_bin -- ${serverargs} &> /dev/null &
fi
fi
# There's some kind of race condition:
# despite the nohup, if we exit too quickly the session is killed.

@ -77,6 +77,11 @@ locktty=no
# /dev/null, so you won't see the complaints.
loginshell=no
# The use of consolekit has recently become manditory with hal. However,
# some users might prefer not using either one. If you don't want to
# use consolekit, set the following variable to "no".
consolekit=yes
# Additional arguments to pass to X server
# When usexinit=yes, we use ~/.xinitrc when it exists or /etc/X11/xinit/xinitrc
# when it doesn't. These are passed the chosen window manager as $1; note that

Loading…
Cancel
Save