From eb83c76bd9a65a75c3bbee064891a9146fe89a2e Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Thu, 29 Sep 2022 15:19:17 +0200 Subject: wayland-app-launch: add xwayland_display env variable Weston is no longer being started as root. To allow applications and other users to start applications that render to weston there is the socket-file in /run/wayland-0 created. Do also specify the user we want the app to be started from. Do also instruct systemd with PAMName to treat as a login so XDG_RUNTIME_DIR is also set. Related-to: ELB-4784 Signed-off-by: Philippe Schenker --- .../wayland-app-launch/wayland-app-launch.service.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in index 677abdb..5c585d3 100644 --- a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in +++ b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in @@ -4,10 +4,13 @@ After=weston.service Requires=weston.service [Service] -Restart=on-failure Type=forking +User=root +PAMName=login +Environment=WAYLAND_DISPLAY=/run/wayland-0 Environment=@@application-environment@@ ExecStart=/usr/bin/wayland-app-launch.sh +Restart=on-failure RestartSec=1 [Install] -- cgit v1.2.3