summaryrefslogtreecommitdiff
path: root/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in')
-rw-r--r--recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in15
1 files changed, 9 insertions, 6 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 4be53a4..31499c1 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
@@ -1,14 +1,17 @@
[Unit]
Description=Start a wayland application
-After=weston@root.service
-Requires=weston@root.service
+After=weston.service
+Requires=weston.service
[Service]
-Restart=on-failure
-Type=forking
+Type=simple
+User=root
+PAMName=login
+Environment=WAYLAND_DISPLAY=/run/wayland-0
Environment=@@application-environment@@
-ExecStart=/usr/bin/wayland-app-launch.sh
+ExecStart=@@wayland-application@@
+Restart=on-failure
RestartSec=1
[Install]
-WantedBy=multi-user.target
+WantedBy=graphical.target