summaryrefslogtreecommitdiff
path: root/tools/osx_packaging/startup_script
blob: 4c0dff1ee1e498783ec36bf93270923bb09408e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

#
# this is used to detect a missing JACK install which
# is the most common thing causing startup crashes.
# 

if test ! -x /usr/local/bin/jackd -a ! -x /usr/bin/jackd ; then
   osascript -e 'tell application "Terminal"
display dialog "You do not have JACK installed.\
Ardour will not run without it.\ 
See http://jackaudio.org/ for info" buttons["OK"]
end tell'
   exit 1
fi

#
# all clear, lets go
#

CWD=`dirname $0`
exec $CWD/Ardour2.bin