summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/lib/live
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-includes/lib/live')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9023-disable-compiz26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9023-disable-compiz b/config/chroot_local-includes/lib/live/config/9023-disable-compiz
new file mode 100755
index 0000000..565a92c
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/9023-disable-compiz
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+Nocompiz ()
+{
+ # Checking if configured
+ if [ -e /var/lib/live/config/nocompiz ]
+ then
+ return
+ fi
+ echo -n " nocompiz"
+ Configure_nocompiz
+}
+
+Configure_nocompiz ()
+{
+ # Boot parameters can be acted up either this way...
+ if ! grep -qs "nocompiz" /proc/cmdline
+ then
+ return
+ fi
+ rm -f /home/${LIVE_USERNAME}/.config/autostart/compiz_start.desktop
+ # Creating state file
+ touch /var/lib/live/config/nocompiz
+}
+
+Nocompiz