Skip to content

Commit

Permalink
fix: remove unix prefix from DISPLAY env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensa committed Nov 22, 2023
1 parent 205c713 commit 7231d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ prepare_docker_ipc_host_sharing() {
prepare_docker_x11_host_sharing() {
# X11 Unix-domain socket
MOUNTS+=" --mount type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix"
ENV_VARS+=" --env=DISPLAY=unix${DISPLAY}"
ENV_VARS+=" --env=DISPLAY=${DISPLAY}"
# Credentials in cookies used by xauth for authentication of X sessions
MOUNTS+=" --mount type=bind,source=${XAUTHORITY},target=${XAUTHORITY}"
ENV_VARS+=" --env=XAUTHORITY=${XAUTHORITY}"
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ prepare_docker_ipc_host_sharing() {
prepare_docker_x11_host_sharing() {
# X11 Unix-domain socket
MOUNTS+=" --mount type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix"
ENV_VARS+=" --env=DISPLAY=unix${DISPLAY}"
ENV_VARS+=" --env=DISPLAY=${DISPLAY}"
# Credentials in cookies used by xauth for authentication of X sessions
MOUNTS+=" --mount type=bind,source=${XAUTHORITY},target=${XAUTHORITY}"
ENV_VARS+=" --env=XAUTHORITY=${XAUTHORITY}"
Expand Down

0 comments on commit 7231d9d

Please sign in to comment.