From e24bd035fdb0d4310de6e1d5d94b589c3b5e2921 Mon Sep 17 00:00:00 2001 From: Tommy Rantti Date: Fri, 2 Oct 2026 14:28:11 +0300 Subject: [PATCH] Give waypipe a digit-led socket name so snap Chromium can open it Snap Chromium's AppArmor profile only allows /run/user/*/wayland-[0-9]*; waypipe's default random name starts with a letter and was refused. Co-Authored-By: Claude Opus 5.5 --- remote-chromium.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remote-chromium.sh b/remote-chromium.sh index c2d6f3b..b71eb75 100755 --- a/remote-chromium.sh +++ b/remote-chromium.sh @@ -71,6 +71,8 @@ cleanup() { trap cleanup EXIT case "$MODE" in - waypipe) waypipe ssh "$HOST" "${AUDIO_ENV[@]}" chromium --ozone-platform=wayland ;; + # snap Chromium's AppArmor profile only allows wayland-* sockets; + # waypipe's default random name starts with a letter and gets refused + waypipe) waypipe --display "wayland-$$" ssh "$HOST" "${AUDIO_ENV[@]}" chromium --ozone-platform=wayland ;; x11) ssh -X "$HOST" "${AUDIO_ENV[@]}" chromium ;; esac