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

#
# NOTE: Leopard appears not to set PATH for this script, so be absolutely certain
# never to use any other program without fully specifying the path.
#
# 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
   /usr/bin/osascript -e 'tell application "Finder"
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
# this quoting is all needed to handle installation
# in folders likes /home/user/Frank's Wild Years

CWD="`/usr/bin/dirname \"$0\"`"
exec "$CWD/Ardour2.bin" "$*"