summaryrefslogtreecommitdiffstats
path: root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'usr/share')
-rw-r--r--usr/share/mageiawelcome/mageiawelcome.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/share/mageiawelcome/mageiawelcome.py b/usr/share/mageiawelcome/mageiawelcome.py
index 5f14890..cbad80a 100644
--- a/usr/share/mageiawelcome/mageiawelcome.py
+++ b/usr/share/mageiawelcome/mageiawelcome.py
@@ -50,14 +50,15 @@ def main():
arch = '32-bit'
home = os.getenv("HOME")
username = os.getenv("USER")
- if os.getenv("DESKTOP_SESSION") != "" :
+ try:
desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION")))
- else:
+ except:
desktop = 'Other'
if desktop == 'Other':
desktop = get_desktop_name2(os.getenv("XDG_CURRENT_DESKTOP"))
-
+ if desktop == 'unknown':
+ desktop = os.getenv("XDG_CURRENT_DESKTOP")
#collect packages nad its status
listapp = get_listapp()