summaryrefslogtreecommitdiff
path: root/kanotix-lxde-extra/kanotix-start-compiz
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2014-03-29 18:07:11 +0100
committerHolger Paradies <retabell@gmx.de>2014-05-06 22:12:35 +0200
commit1816b46f9224d5f1f2a9f44ba545575dbab500df (patch)
tree0a8c335b787a3fed30942a422888737e9bfa2467 /kanotix-lxde-extra/kanotix-start-compiz
parent70aa6d15c62ba69e34674e74d116b35c14cce980 (diff)
downloadkanotix-packages-1816b46f9224d5f1f2a9f44ba545575dbab500df.zip
kanotix-packages-1816b46f9224d5f1f2a9f44ba545575dbab500df.tar.gz
lxde-extra 0.2.8 change compiz startup
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