Fixing xlaunch for systemd branch

This commit is contained in:
Michael Raskin 2013-02-05 17:21:41 +04:00
parent 24b6ad43c1
commit 09ee51c442

View File

@ -45,7 +45,7 @@ EOF
else else
RESET_OPTION=\"-noreset\" RESET_OPTION=\"-noreset\"
fi; fi;
XCMD=\"\$(egrep \"^env\" /etc/init/xserver.conf | sed -e \"s/env/ export /\" | sed -e '\\''s/#.*//'\\'' ; echo export _XARGS_=\\\$\\( grep xserver_arguments \\\$SLIM_CFGFILE \\| sed -e s/xserver_arguments// \\| sed -e s/:0/:\${_display}/ \\| sed -e s/vt7/vt\$((7+_display))/ \\) ; echo ${xorgserver}/bin/X \\\$_XARGS_ \$RESET_OPTION )\" XCMD=\"\$(egrep \"^Environment=\" /etc/systemd/system/display-manager.service | sed -e \"s/Environment=/ export /\" | sed -e '\\''s/#.*//'\\'' ; echo export _XARGS_=\\\$\\( grep xserver_arguments \\\$SLIM_CFGFILE \\| sed -e s/xserver_arguments// \\| sed -e s/:0/:\${_display}/ \\| sed -e s/vt7/vt\$((7+_display))/ \\) ; echo ${xorgserver}/bin/X \\\$_XARGS_ \$RESET_OPTION )\"
echo \"\$XCMD\" echo \"\$XCMD\"
echo \"\$XCMD\" | bash & echo \"\$XCMD\" | bash &
while ! test -e /tmp/.X11-unix/X\$_display &>/dev/null ; do sleep 0.5; done while ! test -e /tmp/.X11-unix/X\$_display &>/dev/null ; do sleep 0.5; done