summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf14
-rw-r--r--recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf4
-rw-r--r--recipes-graphics/wayland/agl-compositor-init_agl-container-guest-demo.inc2
3 files changed, 16 insertions, 4 deletions
diff --git a/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf b/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf
new file mode 100644
index 000000000..b98108edc
--- /dev/null
+++ b/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor-guest.conf
@@ -0,0 +1,14 @@
+# This is a system unit for launching AGL compositor in container guest.
+# Need to drop tty dependency.
+[Unit]
+ConditionPathExists=
+
+[Service]
+TTYPath=
+TTYReset=
+TTYVHangup=
+TTYVTDisallocate=
+
+StandardInput=null
+
+UtmpIdentifier=
diff --git a/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf b/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf
deleted file mode 100644
index 0ff470552..000000000
--- a/recipes-graphics/wayland/agl-compositor-init-agl-container-guest/agl-compositor.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-[Unit]
-
-[Service]
-Environment=XDG_SESSION_TYPE=wayland
diff --git a/recipes-graphics/wayland/agl-compositor-init_agl-container-guest-demo.inc b/recipes-graphics/wayland/agl-compositor-init_agl-container-guest-demo.inc
index 9fa2daf94..fe9bd098b 100644
--- a/recipes-graphics/wayland/agl-compositor-init_agl-container-guest-demo.inc
+++ b/recipes-graphics/wayland/agl-compositor-init_agl-container-guest-demo.inc
@@ -2,12 +2,14 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/agl-compositor-init-agl-container-guest:"
SRC_URI:append = " \
file://agl-compositor.env \
+ file://agl-compositor-guest.conf \
"
DRM_LEASE_DEVICE = "lease"
do_install:append() {
install -Dm644 ${WORKDIR}/agl-compositor.env ${D}${sysconfdir}/default/agl-compositor
+ install -m644 ${WORKDIR}/agl-compositor-guest.conf ${D}/${systemd_system_unitdir}/agl-compositor.service.d/agl-compositor-guest.conf
}
FILES:${PN} += "\