summaryrefslogtreecommitdiff
path: root/src/compiz-icon.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiz-icon.py')
-rwxr-xr-xsrc/compiz-icon.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiz-icon.py b/src/compiz-icon.py
index be6c562..85115c5 100755
--- a/src/compiz-icon.py
+++ b/src/compiz-icon.py
@@ -65,6 +65,8 @@ def activate_config_ini():
# Window Manager
active_wm = configuration.get('window_manager', 'set_active_wm')
if active_wm == 'compiz':
+ # Get Env Variables
+ env_variables = getoutput('compiz-manager -r env')
# Compiz Options
wm_replace = configuration.get('window_manager', 'wm_replace')
sm_disable = configuration.get('default_compiz_options', 'sm_disable')
@@ -77,6 +79,7 @@ def activate_config_ini():
decorator_replace = configuration.get('decorator', 'decorator_replace')
# Start Compiz WM
Popen(['killall' , 'compiz.real' , 'metacity' , 'kwin'])
+ system('export' + env_variables)
Popen(['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'])
@@ -121,6 +124,8 @@ def start_wm(widget):
activate_config_ini()
def compiz_menu_activate(widget):
+ # Get Env Variables
+ env_variables = getoutput('compiz-manager -r env')
# Set compiz wm
configuration.set('window_manager', 'set_active_wm', 'compiz')
configuration.write(open(config_file, 'w'))
@@ -138,6 +143,7 @@ def compiz_menu_activate(widget):
decorator_replace = configuration.get('decorator', 'decorator_replace')
# Run compiz
Popen(['killall' , 'compiz.real' , '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])
Popen([set_active_decorator , decorator_replace])