startx: use /var/run/grml-x/window-manager for selection of specific window manager
[grml-desktop.git] / etc / skel / .zprofile
1 # handle automatic X.org/grml-x startup on Grml live system
2 if [ -r /etc/grml_cd ] ; then
3   # /var/run/grml-x/window-manager is an ugly hack to share
4   # selection of window manager via startx boot option
5   # and grml-quickconfig with this startup wrapper
6   if [ -r /var/run/grml-x/window-manager ] ; then
7     [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x "$(cat /var/run/grml-x/window-manager)"
8   else
9     [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x
10   fi
11 fi