eric6/Globals/__init__.py

changeset 8126
e7278bf7168f
parent 7923
91e843545d9a
child 8142
43248bafe9b2
child 8240
93b8a353c4bf
equal deleted inserted replaced
8125:9e789fa8f38e 8126:e7278bf7168f
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