[PATCH 03/13] img/app: wayland-proxy-virtwl: move Wayland socket

Alyssa Ross
2025-11-26T21:34:38Z

I didn't realise this could be an absolute path outside of
XDG_RUNTIME_DIR. This will make it much more convenient to run
services as different users, which isn't really
XDG_RUNTIME_DIR-friendly.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY | 2 +-
img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY.license | 2 +-
img/app/image/etc/s6-rc/wayland-proxy-virtwl/run | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY b/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY
index 7be60bf..bbd390c 100644
--- a/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY
+++ b/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY
@@ -1 +1 @@
-wayland-0
+/run/wayland
diff --git a/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY.license b/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY.license
index d705e97..0d3d47c 100644
--- a/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY.license
+++ b/img/app/image/etc/s6-linux-init/env/WAYLAND_DISPLAY.license
@@ -1,2 +1,2 @@
SPDX-License-Identifier: CC0-1.0
-SPDX-FileCopyrightText: 2024 Alyssa Ross <hi@alyssa.is>
+SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is>
diff --git a/img/app/image/etc/s6-rc/wayland-proxy-virtwl/run b/img/app/image/etc/s6-rc/wayland-proxy-virtwl/run
index df9173a..380a833 100755
--- a/img/app/image/etc/s6-rc/wayland-proxy-virtwl/run
+++ b/img/app/image/etc/s6-rc/wayland-proxy-virtwl/run
@@ -8,7 +8,7 @@

foreground { mkdir /tmp/.X11-unix }

-s6-ipcserver-socketbinder -B /run/user/0/wayland-0
+s6-ipcserver-socketbinder -B /run/wayland
fdmove -c 3 0

s6-ipcserver-socketbinder -B /tmp/.X11-unix/X0
--
2.51.0