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 <noreply@anthropic.com>
This commit is contained in:
Tommy Rantti 2026-10-02 14:28:11 +03:00
parent e0c8678410
commit e24bd035fd

View file

@ -71,6 +71,8 @@ cleanup() {
trap cleanup EXIT trap cleanup EXIT
case "$MODE" in case "$MODE" in
waypipe) waypipe ssh "$HOST" "${AUDIO_ENV[@]}" chromium --ozone-platform=wayland ;; # snap Chromium's AppArmor profile only allows wayland-<digit>* 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 ;; x11) ssh -X "$HOST" "${AUDIO_ENV[@]}" chromium ;;
esac esac