eric6/Globals/__init__.py

branch
maintenance
changeset 8142
43248bafe9b2
parent 8043
0acf98cd089a
parent 8126
e7278bf7168f
child 8273
698ae46f40a4
--- a/eric6/Globals/__init__.py	Mon Feb 01 10:38:43 2021 +0100
+++ b/eric6/Globals/__init__.py	Tue Mar 02 17:12:08 2021 +0100
@@ -164,7 +164,7 @@
     if not isLinuxPlatform():
         return ""
     
-    sessionType = os.environ.get("XDG_SESSION_TYPE").lower()
+    sessionType = os.environ.get("XDG_SESSION_TYPE", "").lower()
     if "x11" in sessionType:
         return "X11"
     elif "wayland" in sessionType:

eric ide

mercurial