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 "Ardour3"
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 "Ardour3"
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 "Ardour3"
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
/X11R
6/lib
/X11
/xinit
/xinitrc
>> ~
/.xinitrc
35 if uname
-r |
grep -sq '^9' ; then
36 # leopard will auto-start X11 for us
40 cp -f "$CWD/bin/getdisplay.sh" $TMP
42 open-x11
$TMP/getdisplay.sh || \
43 open
-a XDarwin
$TMP/getdisplay.sh || \
44 echo ":0" > $TMP/display
46 while [ "$?" == "0" -a ! -f $TMP/display
]; do sleep 1; done
47 export "DISPLAY=`cat $TMP/display`"
49 ps
-wx -ocommand |
grep -e '[X]11' > /dev
/null ||
exit 11
54 exec "$CWD/bin/exporter" "$*"