Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tell user when Path Randomization is in effect #72

Closed
ctrueden opened this issue Jan 31, 2019 · 1 comment
Closed

Tell user when Path Randomization is in effect #72

ctrueden opened this issue Jan 31, 2019 · 1 comment

Comments

@ctrueden
Copy link
Member

On recent versions of macOS, if you download an ImageJ distribution such as Fiji and then run it in place, the OS invokes a security feature known as Gatekeeper Path Randomization (GPR). The app gets translocated to a random, temporary, read-only folder e.g.:

ImageJ home: /private/var/folders/n2/5q09bjq11kv6xwpp0xlg4npc0000gq/T/AppTranslocation/FE72DDB9-F7F8-487D-B279-3D7B851F8FCC/d/Fiji.app/
Java home: /private/var/folders/n2/5q09bjq11kv6xwpp0xlg4npc0000gq/T/AppTranslocation/FE72DDB9-F7F8-487D-B279-3D7B851F8FCC/d/Fiji.app/java/macosx/jdk1.8.0_172.jre/jre/Contents/Home

And the ImageJ Updater then fails to be able to update the application, since the installation is read-only and temporary.

I think it is outside the scope of ImageJ to work around this issue. The problem is avoided by copying the application bundle somewhere else such as /Applications. However, the Updater could be smarter about detecting this situation, and giving a friendlier error message telling the user what is going on, and how to fix it.

@ctrueden
Copy link
Member Author

ctrueden commented Sep 7, 2022

Fixed by 5bd65c8

@ctrueden ctrueden closed this as completed Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant