summaryrefslogtreecommitdiff
path: root/hw/xquartz/bundle/X11.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xquartz/bundle/X11.sh')
-rwxr-xr-xhw/xquartz/bundle/X11.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/xquartz/bundle/X11.sh b/hw/xquartz/bundle/X11.sh
index 87c52b362..f6fac9f50 100755
--- a/hw/xquartz/bundle/X11.sh
+++ b/hw/xquartz/bundle/X11.sh
@@ -1,3 +1,8 @@
#!/bin/bash --login
-"$(dirname $0)"/X11.bin "${@}"
+if [ -x ~/.x11run ]; then
+ exec ~/.x11run "$(dirname $0)"/X11.bin "${@}"
+else
+ exec "$(dirname $0)"/X11.bin "${@}"
+fi
+