summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Bellanger <keeguon@perception.(none)>2007-05-28 21:32:22 +0200
committerFelix Bellanger <keeguon@perception.(none)>2007-05-28 21:32:22 +0200
commitf05e81bc0e785e7da1670a2033600806f309d159 (patch)
tree1ec40200159efeb1cbdd26529dfbd5b7655a6815
parente300a89dbb085d41dc1ed8f980087b345a4baaef (diff)
downloadcompiz-icon-f05e81bc0e785e7da1670a2033600806f309d159.tar.gz
compiz-icon-f05e81bc0e785e7da1670a2033600806f309d159.tar.bz2
modified: src/compiz-icon.py
-rwxr-xr-xsrc/compiz-icon.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiz-icon.py b/src/compiz-icon.py
index 85115c5..5e1547c 100755
--- a/src/compiz-icon.py
+++ b/src/compiz-icon.py
@@ -6,7 +6,7 @@ import pygtk
pygtk.require('2.0')
import gtk
from commands import getoutput
-from os import system, popen
+from os import mkdir, system, popen
from os.path import exists
from subprocess import Popen
@@ -367,7 +367,7 @@ for line in processes:
# Get installed application
app_is_installed = []
-apps = ('compiz.real', 'ccsm' , 'gtk-window-decorator', 'kde-window-decorator', 'emerald' , 'metacity' , 'kwin')
+apps = ('compiz.real', 'compiz' , 'ccsm' , 'gtk-window-decorator', 'kde-window-decorator', 'emerald' , 'metacity' , 'kwin')
for application in apps:
if system("which " + application) == 0:
app_is_installed.append(application)
@@ -384,7 +384,7 @@ pixmap_dir = '/usr/share/pixmaps/compiz-icon/'
# Home directory related stuffs
if exists(home_directory) == False:
# Create home directory
- Popen(['mkdir' , home_directory])
+ mkdir(home_directory)
# Create and Write the default config_file
create_config_file()
if exists(home_directory) == True and exists(config_file) == False:
@@ -407,7 +407,7 @@ loose_binding = configuration.get('compiz_options', 'loose_binding')
# Window Manager
wm_menu = gtk.Menu()
-if installed('compiz.real'):
+if installed('compiz.real') or installed('compiz'):
compiz_wm = gtk.RadioMenuItem(label=" Compiz")
compiz_wm.connect("activate", compiz_menu_activate)
if set_active_wm == 'compiz':