X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fosx_packaging%2Fstartup_script;h=8e6ce2f48cf3794e813474c5a5a8c75244949811;hb=3e661d97b57047144336253f79d679a7300aead8;hp=d8983764840ed6824f0666b282d54cdd0d6261b1;hpb=98019ccc22f80514779c3a05682444e80cb05943;p=ardour.git 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)"