diff options
Diffstat (limited to 'desktop.py')
-rw-r--r-- | desktop.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop.py b/desktop.py index 39ed5833f..8c17f9f82 100644 --- a/desktop.py +++ b/desktop.py @@ -64,3 +64,14 @@ class Desktop (SimpleConfigFile): f.close() +ENABLE_DESKTOP_CHOICE = 0 +try: + f = open("/proc/cmdline") + line = f.readline() + if string.find(line, " kde") != -1: + ENABLE_DESKTOP_CHOICE = 1 + else: + ENABLE_DESKTOP_CHOICE = 0 + del f +except: + ENABLE_DESKTOP_CHOICE = 0 |