summaryrefslogtreecommitdiff
path: root/tools/osx_packaging/startup_script
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-11 15:17:33 +0100
committerRobin Gareus <robin@gareus.org>2014-11-11 15:22:09 +0100
commit0ac3ed8681676bbd44708f8c21d8c4993210fb53 (patch)
treefd79b17e884234ba8daf5ae6e54aaa7ab53d45a3 /tools/osx_packaging/startup_script
parent9254e80c396265f484adb3b7bf5f0b502d096107 (diff)
fix osx startup script /usr/local test
A vanilla OSX system has no /usr/local/ folder. Ardour can still run with the coreaudio or dummy backend.
Diffstat (limited to 'tools/osx_packaging/startup_script')
-rw-r--r--tools/osx_packaging/startup_script6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/osx_packaging/startup_script b/tools/osx_packaging/startup_script
index 24db2d77c2..f807dd2b59 100644
--- a/tools/osx_packaging/startup_script
+++ b/tools/osx_packaging/startup_script
@@ -6,11 +6,13 @@
#
#
-# Some versions of Audacity leave /usr/local/lib unreadable/unsearchable. Ardour will not be able to start up if this is
+# Some versions of Audacity leave /usr/local/lib unreadable/unsearchable. Ardour will not be able to start up if this is
# the case, because we need access to /usr/local/lib/libjack.dylib
#
+# except if there's no jack and hence also no /usr/local/lib dir in the first place.
+#
-if test ! -x /usr/local/lib -o ! -r /usr/local/lib ; then
+if test -d /usr/local/lib -a ! -x /usr/local/lib -o -d /usr/local/lib -a ! -r /usr/local/lib ; then
/usr/bin/osascript -e 'tell application "Finder"
display dialog "You appear to have previously installed Audacity which altered your filesystem incorrectly. Ardour cannot run until this is corrected. To correct the error, type the following command into a Terminal window: chmod 755 /usr/local/lib" buttons["OK"]
end tell'