summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Bellanger <keeguon@perception.(none)>2007-05-28 21:44:22 +0200
committerFelix Bellanger <keeguon@perception.(none)>2007-05-28 21:44:22 +0200
commitf0663bf41d4f76cefdcbb23c0c63b207f2f2aafa (patch)
tree86459dbd52eb99f6c69bad09dc8dceb7fcb4b48e
parentf05e81bc0e785e7da1670a2033600806f309d159 (diff)
downloadcompiz-icon-f0663bf41d4f76cefdcbb23c0c63b207f2f2aafa.tar.gz
compiz-icon-f0663bf41d4f76cefdcbb23c0c63b207f2f2aafa.tar.bz2
modified: src/compiz-icon.py
-rwxr-xr-xsrc/compiz-icon.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/compiz-icon.py b/src/compiz-icon.py
index 5e1547c..d48670a 100755
--- a/src/compiz-icon.py
+++ b/src/compiz-icon.py
@@ -78,9 +78,12 @@ def activate_config_ini():
set_active_decorator = configuration.get('decorator', 'set_active_decorator')
decorator_replace = configuration.get('decorator', 'decorator_replace')
# Start Compiz WM
- Popen(['killall' , 'compiz.real' , 'metacity' , 'kwin'])
+ Popen(['killall' , 'compiz.real' , 'compiz' , 'metacity' , 'kwin'])
system('export' + env_variables)
- Popen(['compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ if installed('compiz.real'):
+ Popen(['compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ if installed('compiz'):
+ Popen(['compiz' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
# Start GL Decorator
Popen(['killall' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald'])
Popen([set_active_decorator , decorator_replace])
@@ -142,9 +145,12 @@ def compiz_menu_activate(widget):
set_active_decorator = configuration.get('decorator', 'set_active_decorator')
decorator_replace = configuration.get('decorator', 'decorator_replace')
# Run compiz
- Popen(['killall' , 'compiz.real' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
+ Popen(['killall' , 'compiz.real' , 'compiz' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
system('export' + env_variables)
- Popen(['compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ if installed('compiz.real'):
+ Popen(['compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ if installed('compiz'):
+ Popen(['compiz' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
Popen([set_active_decorator , decorator_replace])
def kwin_menu_activate(widget):
@@ -155,7 +161,7 @@ def kwin_menu_activate(widget):
set_active_wm = configuration.get('window_manager', 'set_active_wm')
wm_replace = configuration.get('window_manager', 'wm_replace')
# Run kwin
- Popen(['killall' , 'compiz.real' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
+ Popen(['killall' , 'compiz.real' , 'compiz' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
Popen([set_active_wm , wm_replace])
def metacity_menu_activate(widget):
@@ -166,7 +172,7 @@ def metacity_menu_activate(widget):
set_active_wm = configuration.get('window_manager', 'set_active_wm')
wm_replace = configuration.get('window_manager', 'wm_replace')
# Run metacity
- Popen(['killall' , 'compiz.real' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
+ Popen(['killall' , 'compiz.real' , 'compiz' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
Popen([set_active_wm , wm_replace])
def backend_ccp_activate(widget):