summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2010-12-17 12:41:20 +0100
committerDominique Leuenberger <dimstar@opensuse.org>2010-12-17 12:43:02 +0100
commit7b1a76b9c4540dba72dc8e93343b15aba4afef40 (patch)
tree1a2ef17aab317cfe642cdf08de5824107a462209
parent14ddb59aa21e00a01b9102a69dffacb058dcdc1e (diff)
downloadsimple-ccsm-7b1a76b9c4540dba72dc8e93343b15aba4afef40.tar.gz
simple-ccsm-7b1a76b9c4540dba72dc8e93343b15aba4afef40.tar.bz2
Catch error when kwriteconfig is not found and user wants to disable
compiz (can happen in a pure gnome system). bugzilla.novell.com/659886
-rwxr-xr-xsimple-ccsm.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/simple-ccsm.in b/simple-ccsm.in
index a5d0aed..4e74929 100755
--- a/simple-ccsm.in
+++ b/simple-ccsm.in
@@ -1323,7 +1323,10 @@ class MainWin:
# Reset window manager config for KDE
cmd = "kwriteconfig --file ksmserverrc --group General --key windowManager kwin".split(" ")
- subprocess.Popen(cmd)
+ try:
+ subprocess.Popen(cmd)
+ except (IOError, OSError):
+ pass
# Remove old config
files = ("~/.config/compiz/enable-compiz", "~/.config/compiz/compiz-manager")