From 9b115d93fe2abf7caf799bb8a8ff25821ffc9d06 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 30 Jan 2024 00:09:24 +0300 Subject: [PATCH] Container : Add Wayland support. --- .config/bash/module/Container.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/bash/module/Container.sh b/.config/bash/module/Container.sh index 7d0c42c..e933be4 100644 --- a/.config/bash/module/Container.sh +++ b/.config/bash/module/Container.sh @@ -16,8 +16,12 @@ function ca() { -d -it \ -h "${name}" --name "${name}" \ --workdir /data \ + -e XDG_RUNTIME_DIR=/tmp \ + -e WAYLAND_DISPLAY=${WAYLAND_DISPLAY} \ + -v ${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}:/tmp/${WAYLAND_DISPLAY} \ -v ${PWD}:/data \ -v ${HOME}:/root \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ debian:latest bash -c bash &> /dev/null # Attempt to start container.