From 47bf86a3e5d9015f504de4d64942bd17a643b4e6 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Tue, 23 Feb 2021 16:26:14 -0500 Subject: meta-agl-core: update weston Update weston bbappend for weston 10.0 in poky master, and remove now upstreamed patches. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray Change-Id: I5d10435ec9b7c18bb36e8a88f6853f1628e5b052 --- ...ston-to-start-from-a-systemd-user-session.patch | 75 ---------------------- 1 file changed, 75 deletions(-) delete mode 100644 meta-agl-core/recipes-graphics/wayland/weston/0002-Allow-weston-to-start-from-a-systemd-user-session.patch (limited to 'meta-agl-core/recipes-graphics/wayland/weston/0002-Allow-weston-to-start-from-a-systemd-user-session.patch') diff --git a/meta-agl-core/recipes-graphics/wayland/weston/0002-Allow-weston-to-start-from-a-systemd-user-session.patch b/meta-agl-core/recipes-graphics/wayland/weston/0002-Allow-weston-to-start-from-a-systemd-user-session.patch deleted file mode 100644 index d45f93a9b..000000000 --- a/meta-agl-core/recipes-graphics/wayland/weston/0002-Allow-weston-to-start-from-a-systemd-user-session.patch +++ /dev/null @@ -1,75 +0,0 @@ -From b6c891774e23762d6289447ab588bf739a55f628 Mon Sep 17 00:00:00 2001 -From: Derek Foreman -Date: Thu, 15 Jul 2021 12:22:49 -0500 -Subject: [PATCH] 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 - -Upstream-Status: Accepted (to be released with weston 10.0.0) - -Signed-off-by: Derek Foreman ---- - libweston/launcher-logind.c | 29 +++++++++++++++++++++++++---- - 1 file changed, 25 insertions(+), 4 deletions(-) - -diff --git a/libweston/launcher-logind.c b/libweston/launcher-logind.c -index 993d8e1a2..3fca1dff6 100644 ---- a/libweston/launcher-logind.c -+++ b/libweston/launcher-logind.c -@@ -734,6 +734,29 @@ launcher_logind_activate(struct launcher_logind *wl) - return 0; - } - -+static int -+launcher_logind_get_session(char **session) -+{ -+ int r; -+ -+ r = sd_pid_get_session(getpid(), session); -+ if (r < 0) { -+ if (r != -ENODATA) { -+ weston_log("logind: not running in a systemd session: %d\n", r); -+ return r; -+ } -+ } else { -+ return r; -+ } -+ -+ /* When not inside a systemd session look if there is a suitable one */ -+ r = sd_uid_get_display(getuid(), session); -+ if (r < 0) -+ weston_log("logind: cannot find systemd session for uid: %d %d\n", getuid(), r); -+ -+ return r; -+} -+ - static int - launcher_logind_connect(struct weston_launcher **out, struct weston_compositor *compositor, - int tty, const char *seat_id, bool sync_drm) -@@ -759,11 +782,9 @@ launcher_logind_connect(struct weston_launcher **out, struct weston_compositor * - goto err_wl; - } - -- r = sd_pid_get_session(getpid(), &wl->sid); -- if (r < 0) { -- weston_log("logind: not running in a systemd session\n"); -+ r = launcher_logind_get_session(&wl->sid); -+ if (r < 0) - goto err_seat; -- } - - t = NULL; - r = sd_session_get_seat(wl->sid, &t); --- -GitLab -- cgit 1.2.3-korg