From eedf0cbce6d2f8f5723a6716beb20099317235dc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 28 May 2017 19:49:48 +0200 Subject: [PATCH] startx: share selected window manager via /var/run/grml-x/window-manager Closes grml/grml#44 --- autoconfig.functions | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.1.4