summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 4c7263e..5f14890 100644
--- a/usr/share/mageiawelcome/mageiawelcome.py
+++ b/usr/share/mageiawelcome/mageiawelcome.py
@@ -3,8 +3,6 @@
import signal
import os
import time
-import urllib.request, urllib.parse, urllib.error
-import subprocess
import subprocess
import shlex
import gettext
@@ -52,7 +50,10 @@ def main():
arch = '32-bit'
home = os.getenv("HOME")
username = os.getenv("USER")
- desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION")))
+ if os.getenv("DESKTOP_SESSION") != "" :
+ desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION")))
+ else:
+ desktop = 'Other'
if desktop == 'Other':
desktop = get_desktop_name2(os.getenv("XDG_CURRENT_DESKTOP"))