Skip to content

Commit e4fdc48

Browse files
committed
Pass the correct DISPLAY env variable to docker
1 parent 4e022ca commit e4fdc48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ case "$1" in
2424
docker build . --tag diffdetective-demo:1.0.0 || echo "Failed to build the docker container." && echo "Docker container sucessfully built."
2525
;;
2626
demo)
27-
docker run --rm --net=host --volume="$HOME/.Xauthority:/home/user/.Xauthority:rw" -e _JAVA_AWT_WM_NONREPARENTING="$_JAVA_AWT_WM_NONREPARENTING" diffdetective-demo:1.0.0
27+
docker run --rm --net=host --volume="$HOME/.Xauthority:/home/user/.Xauthority:rw" -e _JAVA_AWT_WM_NONREPARENTING="$_JAVA_AWT_WM_NONREPARENTING" -e DISPLAY="${DISPLAY:-:0}" diffdetective-demo:1.0.0
2828
;;
2929
*)
3030
usage

0 commit comments

Comments
 (0)