summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Bellanger <keeguon@perception.(none)>2007-05-29 21:03:25 +0200
committerFelix Bellanger <keeguon@perception.(none)>2007-05-29 21:03:25 +0200
commit6448e95de17bb37f170fea4c213872e7a035085f (patch)
tree38f6835ab6eddd3b628f80344e3ab6f51fc6f4a2
parent487ca48162d895a763d9aac67614c41068e5f9c4 (diff)
downloadcompiz-icon-6448e95de17bb37f170fea4c213872e7a035085f.tar.gz
compiz-icon-6448e95de17bb37f170fea4c213872e7a035085f.tar.bz2
Corrected bugs bringed with the support of env variables.
-rwxr-xr-xsrc/compiz-icon.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/compiz-icon.py b/src/compiz-icon.py
index 47874a0..41436bf 100755
--- a/src/compiz-icon.py
+++ b/src/compiz-icon.py
@@ -80,14 +80,14 @@ def activate_config_ini():
# Start Compiz WM
Popen(['killall' , 'compiz.real' , 'compiz' , 'metacity' , 'kwin'])
if installed('compiz'):
- Popen([env_variables , 'compiz' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ run_compiz = env_variables + ' compiz ' + wm_replace + ' ' + sm_disable + ' ' + fast_filter + ' ' + indirect_rendering + ' ' + loose_binding + ' ' + backend
+ Popen(run_compiz, shell=True)
if installed('compiz.real'):
- Popen([env_variables , 'compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
- if installed('compiz') and installed('compiz.real'):
- Popen([env_variables , 'compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ run_compiz = env_variables + ' compiz.real ' + wm_replace + ' ' + sm_disable + ' ' + fast_filter + ' ' + indirect_rendering + ' ' + loose_binding + ' ' + backend
+ Popen(run_compiz, shell=True)
# Start GL Decorator
Popen(['killall' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald'])
- Popen([set_active_decorator , decorator_replace])
+ Popen(set_active_decorator + ' ' + decorator_replace, shell=True)
if active_wm == 'metacity':
wm_replace = configuration.get('window_manager', 'wm_replace')
# Start Metacity WM
@@ -146,14 +146,16 @@ 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' , 'compiz' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
+ Popen(['killall' , 'compiz.real' , 'compiz' , 'metacity' , 'kwin'])
if installed('compiz'):
- Popen([env_variables , 'compiz' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ run_compiz = env_variables + ' compiz ' + wm_replace + ' ' + sm_disable + ' ' + fast_filter + ' ' + indirect_rendering + ' ' + loose_binding + ' ' + backend
+ Popen(run_compiz, shell=True)
if installed('compiz.real'):
- Popen([env_variables , 'compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
- if installed('compiz') and installed('compiz.real'):
- Popen([env_variables , 'compiz.real' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
- Popen([set_active_decorator , decorator_replace])
+ run_compiz = env_variables + ' compiz.real ' + wm_replace + ' ' + sm_disable + ' ' + fast_filter + ' ' + indirect_rendering + ' ' + loose_binding + ' ' + backend
+ Popen(run_compiz, shell=True)
+ # Start GL Decorator
+ Popen(['killall' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald'])
+ Popen(set_active_decorator + ' ' + decorator_replace, shell=True)
def kwin_menu_activate(widget):
# Set kwin wm