File simple-ccsm-kde-enable.patch of Package simple-ccsm

From: Jigish Gohil <cyberorg@opensuse.org>
Date: Fri, 26 Sep 2008 08:10:57 +0000 (+0530)
Subject: fix kde autostart
X-Git-Url: http://gitweb.compiz-fusion.org/?p=fusion%2Fcompizconfig%2Fsimple-ccsm;a=commitdiff_plain;h=15c97beff678de8437b50cacc71069edc3bf59fb

fix kde autostart
---

diff --git a/simple-ccsm.in b/simple-ccsm.in
index 0491f26..60abb2b 100755
--- a/simple-ccsm.in
+++ b/simple-ccsm.in
@@ -1269,6 +1269,12 @@ class MainWin:
             cmd = CompizStartCommand.split(" ")
             subprocess.Popen(cmd)
 
+            # Enable compiz in kde
+            try:
+                 subprocess.call('kwriteconfig --file ksmserverrc --group General --key windowManager compiz'.split())
+            except (IOError, OSError):
+                 pass
+
             # Create a file that indicates wether compiz is enabled or not
             path = os.path.expanduser("~/.config/compiz/enable-compiz")
             open(path, "w+").close() # touch replacement

openSUSE Build Service is sponsored by