summaryrefslogtreecommitdiffstats
path: root/desktop.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-14 20:51:15 +0000
committerMike Fulbright <msf@redhat.com>2002-06-14 20:51:15 +0000
commitcfa09f12a810de3eb35e16136008f98d6801f2f3 (patch)
treeb451fb93c0f053074254ae6d1bc80fd7e846159d /desktop.py
parentbf80e5101c94af4cca22de6b80980673db5cfe9a (diff)
downloadanaconda-cfa09f12a810de3eb35e16136008f98d6801f2f3.tar.gz
anaconda-cfa09f12a810de3eb35e16136008f98d6801f2f3.tar.xz
anaconda-cfa09f12a810de3eb35e16136008f98d6801f2f3.zip
I'm not a tool!
Diffstat (limited to 'desktop.py')
-rw-r--r--desktop.py11
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