summaryrefslogtreecommitdiff
path: root/tools/osx_packaging/bin/getdisplay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/osx_packaging/bin/getdisplay.sh')
-rwxr-xr-xtools/osx_packaging/bin/getdisplay.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/osx_packaging/bin/getdisplay.sh b/tools/osx_packaging/bin/getdisplay.sh
new file mode 100755
index 0000000000..a88b930e72
--- /dev/null
+++ b/tools/osx_packaging/bin/getdisplay.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# Author: Aaron Voisine <aaron@voisine.org>
+
+if [ "$DISPLAY"x == "x" ]; then
+ echo :0 > /tmp/$UID/TemporaryItems/display
+else
+ echo $DISPLAY > /tmp/$UID/TemporaryItems/display
+fi