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-compiz10
1 files changed, 7 insertions, 3 deletions
diff --git a/kanotix-lxde-extra/kanotix-start-compiz b/kanotix-lxde-extra/kanotix-start-compiz
index b1f631f..4a4b764 100644
--- a/kanotix-lxde-extra/kanotix-start-compiz
+++ b/kanotix-lxde-extra/kanotix-start-compiz
@@ -1,10 +1,10 @@
#!/bin/sh
- # kanotix-start-copmpiz 20140212
+ # kanotix-start-copmpiz 20140329
# Start compiz via fusion-icon
[ "$(id -u)" = "0" ] && exit 2 # do not run as root
-! [ -x /usr/sbin/lightdm ] && exit 3 # only start in lxde with ligthdm
+! [ -x /usr/bin/lxde-logout ] && exit 3 # only start in lxde
if [ -e ~/.nocompiz ]; then
# write openbox-config and start openbox
@@ -69,7 +69,11 @@ fi
if glxinfo|grep -q GLX_EXT_texture_from_pixmap; then
if [ -x /usr/bin/fusion-icon ]; then
echo "starte fusion-icon"
- fusion-icon $STARTFLAG >/dev/null 2>&1 & # start and reload windowmanager
+ if grep "wm = compiz" ~/.config/compiz/fusion-icon; then
+ compiz --replace &
+ fi
+
+ fusion-icon -n >/dev/null 2>&1 & # start and do not reload windowmanager
else
echo "ERROR fusion-icon not found, starting default" >&2
fi