A fix for OSX translocation


#1

This question is in regards to the downloadable release of ml4a-ofx on OSX.

After download, none of the apps have access to the files in the data folder until each app is manually moved to another folder and then moved back. This is due to OSX now translocating the app as a security feature until they are moved.

One workaround is to bundle the data into the internal resources folder inside .app but this is problematic because all the apps have to share some large data files, which I’d prefer not to duplicate.

Is there any other workaround which makes this moving trick unnecessary so it behaves as expected?


#2

you can create a script that deletes the attributes and run it from a console. to delete the attributes you just need to run

xattr -cr root_path

#3

this appears to fix it, although it has to be done by the user (it seems), so i’m bundling it into the setup script. thanks!


#4

I use to use a run.command file like this
.command file extension is a .sh file but it runs just clicking as a usual software on os x

#/bin/bash
NAME="Mareh201808"
APP="${NAME}Debug"
cd "$(dirname "$0")"
./${APP}.app/Contents/MacOS/${APP}

this is not pretty but I have console output and can open two instances of the same app easily when needed

PS: Not a fix but just a band aid solution for running softwares in different computers for now.