Skip to content
Snippets Groups Projects
Commit b7b6c226 authored by Timothee Besset's avatar Timothee Besset
Browse files

fix session detection

parent 1630d30b
No related branches found
No related tags found
No related merge requests found
......@@ -192,21 +192,11 @@ def osclient_version():
def session_config():
'''What is the graphics session configuration?'''
# needs to be kept in sync with whatever steamos-session-select is doing
sentinel_file = os.path.join(
os.environ.get(
'XDG_CONFIG_DIR',
os.path.join(os.environ['HOME'], '.config')
),
'steamos-session-select'
)
# the sentinel file if exists will point to x11 or wayland
# (hu we don't use this for anything)
#is_wayland = False
#if os.path.exists(sentinel_file):
# s = open(sentinel_file, 'rt').read()
# is_wayland = s.find('wayland') != -1
# steamos-session-select writes this file
conf_file = '/etc/sddm.conf.d/zz-steamos-autologin.conf'
if not os.path.exists(conf_file):
# fallback to the OS default
conf_file = '/etc/sddm.conf.d/steamos.conf'
if os.path.exists(conf_file):
s = open(conf_file, 'rt').read()
if s.find('plasmawayland.desktop') != -1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment