summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'