summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/compiz-icon.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/compiz-icon.py b/src/compiz-icon.py
index 809123e..47874a0 100755
--- a/src/compiz-icon.py
+++ b/src/compiz-icon.py
@@ -79,11 +79,12 @@ def activate_config_ini():
decorator_replace = configuration.get('decorator', 'decorator_replace')
# Start Compiz WM
Popen(['killall' , 'compiz.real' , 'compiz' , 'metacity' , 'kwin'])
- system('export' + env_variables)
- 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([env_variables , 'compiz' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ 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])
# Start GL Decorator
Popen(['killall' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald'])
Popen([set_active_decorator , decorator_replace])
@@ -146,11 +147,12 @@ def compiz_menu_activate(widget):
decorator_replace = configuration.get('decorator', 'decorator_replace')
# Run compiz
Popen(['killall' , 'compiz.real' , 'compiz' , 'gtk-window-decorator' , 'kde-window-decorator' , 'emerald' , 'metacity' , 'kwin'])
- system('export' + env_variables)
- 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([env_variables , 'compiz' , wm_replace , sm_disable , fast_filter , indirect_rendering , loose_binding , backend])
+ 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])
def kwin_menu_activate(widget):