3 # Author: Aaron Voisine <aaron@voisine.org>
5 if [ ! -x /Applications/Utilities/X11.app ] ; then
6 if [ -f /usr/include/X11/X.h ] ; then
7 osascript -e 'tell application "Ardour2"
8 display dialog "You have installed the X11 SDK, but not X11 itself.\
9 Please install X11 before running Ardour" buttons["OK"]
12 osascript -e 'tell application "Ardour2"
13 display dialog "Please install X11 before running Ardour" buttons["OK"]
19 if [ ! -x /usr/local/bin/jackd -a ! -x /usr/bin/jackd ] ; then
20 osascript -e 'tell application "Ardour2"
21 display dialog "You do not appear to have JACK installed.\nPlease install it before running Ardour" buttons["OK"]
26 CWD="`dirname \"$0\"`"
27 TMP=/tmp/$UID/TemporaryItems
29 ps -wx -ocommand | grep -e '[X]11' > /dev/null
30 if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
31 echo "rm -f ~/.xinitrc" > ~/.xinitrc
32 sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
36 cp -f "$CWD/bin/getdisplay.sh" $TMP
38 open-x11 $TMP/getdisplay.sh || \
39 open -a XDarwin $TMP/getdisplay.sh || \
40 echo ":0" > $TMP/display
42 while [ "$?" == "0" -a ! -f $TMP/display ]; do sleep 1; done
43 export "DISPLAY=`cat $TMP/display`"
45 ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
49 exec "$CWD/bin/exporter" "$*"