Skip to content
Commit b6c89177 authored by Derek Foreman's avatar Derek Foreman Committed by Daniel Stone
Browse files

launcher-logind: Try the user's primary session if not in a session



If we're not in a session we can fall back to sd_uid_get_display() to
find the user's primary session.

This allows launching weston from an ssh session or as a systemd
user service if a viable session is available.

It also more closely follows how libseat finds the session. The libseat
launcher can already do these things, so this change makes these
features common to both launchers.

Based on a patch by Sjoerd Simons <sjoerd.simons@collabora.com>

Signed-off-by: default avatarDerek Foreman <derek.foreman@collabora.com>
parent d2a320d5
Loading
Loading
Loading
Pipeline #411954 passed with stages
in 3 minutes and 39 seconds
Loading
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