diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2022-09-29 15:19:17 +0200 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2022-09-29 15:25:22 +0200 |
commit | eb83c76bd9a65a75c3bbee064891a9146fe89a2e (patch) | |
tree | 32846c666a4a5740efe13dcd94bc16c49ca6fb18 | |
parent | a89c5d34160fd16bfbc434b231200636cd0782b0 (diff) |
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 <philippe.schenker@toradex.com>
-rw-r--r-- | recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in | 5 |
1 files changed, 4 insertions, 1 deletions
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] |