eric6/Globals/__init__.py

branch
maintenance
changeset 8142
43248bafe9b2
parent 8043
0acf98cd089a
parent 8126
e7278bf7168f
child 8273
698ae46f40a4
equal deleted inserted replaced
8044:874fdd14d3a2 8142:43248bafe9b2
162 @rtype str 162 @rtype str
163 """ 163 """
164 if not isLinuxPlatform(): 164 if not isLinuxPlatform():
165 return "" 165 return ""
166 166
167 sessionType = os.environ.get("XDG_SESSION_TYPE").lower() 167 sessionType = os.environ.get("XDG_SESSION_TYPE", "").lower()
168 if "x11" in sessionType: 168 if "x11" in sessionType:
169 return "X11" 169 return "X11"
170 elif "wayland" in sessionType: 170 elif "wayland" in sessionType:
171 return "Wayland" 171 return "Wayland"
172 172

eric ide

mercurial