summaryrefslogtreecommitdiff
path: root/kanotix-lxde-extra/kanotix-start-compiz
diff options
context:
space:
mode:
Diffstat (limited to 'kanotix-lxde-extra/kanotix-start-compiz')
-rw-r--r--kanotix-lxde-extra/kanotix-start-compiz6
1 files changed, 4 insertions, 2 deletions
diff --git a/kanotix-lxde-extra/kanotix-start-compiz b/kanotix-lxde-extra/kanotix-start-compiz
index 7e3d478..b1f631f 100644
--- a/kanotix-lxde-extra/kanotix-start-compiz
+++ b/kanotix-lxde-extra/kanotix-start-compiz
@@ -1,9 +1,8 @@
#!/bin/sh
- # kanotix-start-copmpiz 20131231
+ # kanotix-start-copmpiz 20140212
# Start compiz via fusion-icon
-! [ -x /usr/bin/compiz ] && exit 1 # check for compiz
[ "$(id -u)" = "0" ] && exit 2 # do not run as root
! [ -x /usr/sbin/lightdm ] && exit 3 # only start in lxde with ligthdm
@@ -11,6 +10,7 @@ if [ -e ~/.nocompiz ]; then
# write openbox-config and start openbox
# keep care we have this config in case fusion-icon is started from
# menu later with the -n option
+mkdir -p ~/.config/compiz/
echo "compiz start disabled per user setting" >&2
cat <<"_EOF_" > ~/.config/compiz/fusion-icon
[compiz options]
@@ -30,6 +30,8 @@ fi
exit 4
fi
+! [ -x /usr/bin/compiz ] && exit 1 # check for compiz
+
# startup
if ! [ -e ~/.config/compiz/fusion-icon ]; then
# write default config for fusion-icon, this is default, also