projects
/
grml-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fcad2aa
)
startx: use /var/run/grml-x/window-manager for selection of specific window manager
author
Michael Prokop
<mika@grml.org>
Sun, 28 May 2017 17:50:49 +0000
(19:50 +0200)
committer
Michael Prokop
<mika@grml.org>
Sun, 28 May 2017 17:50:49 +0000
(19:50 +0200)
Closes grml/grml#44
etc/skel/.zprofile
patch
|
blob
|
history
diff --git
a/etc/skel/.zprofile
b/etc/skel/.zprofile
index
6c813b4
..
d5b10bd
100644
(file)
--- a/
etc/skel/.zprofile
+++ b/
etc/skel/.zprofile
@@
-1,4
+1,11
@@
# handle automatic X.org/grml-x startup on Grml live system
if [ -r /etc/grml_cd ] ; then
# handle automatic X.org/grml-x startup on Grml live system
if [ -r /etc/grml_cd ] ; then
- [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x
+ # /var/run/grml-x/window-manager is an ugly hack to share
+ # selection of window manager via startx boot option
+ # and grml-quickconfig with this startup wrapper
+ if [ -r /var/run/grml-x/window-manager ] ; then
+ [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x "$(cat /var/run/grml-x/window-manager)"
+ else
+ [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x
+ fi
fi
fi