summaryrefslogtreecommitdiff
path: root/packaging/macosx/Resources/bin/getdisplay.sh
blob: f7f383348728e2363628444ae1a053b5e12f39e4 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
#
# Author: Aaron Voisine <aaron@voisine.org>

if [ "$DISPLAY"x == "x" ]; then
    echo :0 > /tmp/display.$UID
else
    echo $DISPLAY > /tmp/display.$UID
fi