Enable any client connect to X host

This commit is contained in:
David Kennedy S. A 2018-03-28 11:57:59 -03:00
parent 251c937b7e
commit d03ffc1f26
1 changed files with 6 additions and 0 deletions

6
run.sh
View File

@ -4,10 +4,16 @@ SE_enforcing=`getenforce` || true
sudo setenforce Permissive || true
# Enable any host to connect on X Org
xhost +
docker run -ti --rm \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--device /dev/dri \
edubart/otclient
# Enable any host to connect on X Org
xhost -
sudo setenforce $SE_enforcing || true