Skip to content

Commit

Permalink
do not share /tmp/.X11 on Mac OS X (issue #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Sep 23, 2017
1 parent 19db9d7 commit 5cf9431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-mtgo
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ opts="${opts} -v ${local_data}:/home/wine/.wine/host/"
opts="${opts} -v ${data}:/home/wine/.wine/drive_c/users/"
#-v "${data}:/home/wine/.wine/drive_c/windows/Microsoft.NET/Framework/v4.0.30319/Wizards of the Coast, LLC/" \

opts="${opts} -v /tmp/.X11-unix:/tmp/.X11-unix:rw"
if [[ ${OSTYPE} == darwin* ]]; then
iface=en0
ip=$(ifconfig $iface | grep inet | awk '$1=="inet" {print $2}')
Expand All @@ -170,6 +169,7 @@ if [[ ${OSTYPE} == darwin* ]]; then
socat_pid=$!
export DISPLAY=$ip:0
else
opts="${opts} -v /tmp/.X11-unix:/tmp/.X11-unix:rw"
opts="${opts} -v $HOME/.Xauthority:/home/wine/.Xauthority:ro"
fi

Expand Down

0 comments on commit 5cf9431

Please sign in to comment.