zprofile: ensure code is executed only on Grml as a live-system
[grml-desktop.git] / etc / skel / .zprofile
index dc871b8..6c813b4 100644 (file)
@@ -1 +1,4 @@
-[[ -z $DISPLAY && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x
+# 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
+fi