diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-06-10 11:03:00 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-06-10 11:03:39 -0400 |
commit | 5d81c0ca71431af958e0bd56235fd72b584869b8 (patch) | |
tree | 9c203607afa6cff10fd27fd9fb3be1c8522af2e2 /tools | |
parent | 5b7b56236bb854f0191c0cb939165d06efb1fb2d (diff) |
add test for writability of /usr/local/lib in OS X startup script
Diffstat (limited to 'tools')
-rw-r--r-- | tools/osx_packaging/startup_script | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/osx_packaging/startup_script b/tools/osx_packaging/startup_script index d898376484..8e6ce2f48c 100644 --- a/tools/osx_packaging/startup_script +++ b/tools/osx_packaging/startup_script @@ -15,6 +15,18 @@ end tell' exit 1 fi +# +# 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 +# + +if test ! -x /usr/local/lib -o ! -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' + exit 1 +fi + # this needs to be set so that we can restore the environment when we want to find JACK (or similar) export PREBUNDLE_ENV="$(env)" |