forked from mirrors/nixpkgs
Support pre-start commands from newer NixOS versions in xlaunch
This commit is contained in:
parent
4d9e7b2923
commit
1d38b4842a
|
@ -46,6 +46,9 @@ EOF
|
|||
RESET_OPTION=\"-noreset\"
|
||||
fi;
|
||||
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 )\"
|
||||
PRE_XCMD=\"\$(egrep \"^ExecStartPre=\" /etc/systemd/system/display-manager.service | sed -e \"\s/ExecStartPre=//\")\"
|
||||
echo \"\$PRE_XCMD\"
|
||||
echo \"\$PRE_XCMD\" | bash
|
||||
echo \"\$XCMD\"
|
||||
echo \"\$XCMD\" | bash &
|
||||
while ! test -e /tmp/.X11-unix/X\$_display &>/dev/null ; do sleep 0.5; done
|
||||
|
|
Loading…
Reference in a new issue