From: Michael Prokop Date: Sun, 28 May 2017 17:49:48 +0000 (+0200) Subject: startx: share selected window manager via /var/run/grml-x/window-manager X-Git-Tag: v0.15.9~1 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=eedf0cbce6d2f8f5723a6716beb20099317235dc startx: share selected window manager via /var/run/grml-x/window-manager Closes grml/grml#44 --- diff --git a/autoconfig.functions b/autoconfig.functions index 7638ecc..8ae71d1 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1317,6 +1317,10 @@ if checkbootparam 'startx' && ! echo "$CMDLINE" | grep -q 'startx.*nostartx' ; t einfo "Setting up and invoking grml-x ${WINDOWMANAGER}. Just exit X windows system to get full featured consoles." config_userlocal if $SYSTEMD ; then + if [ -n "$WINDOWMANAGER" ] ; then + mkdir -p /var/run/grml-x/ + echo "$WINDOWMANAGER" > /var/run/grml-x/window-manager + fi chvt 7 return fi