I downloaded the zip file of iterm, unzipped it and copied the iterm.app folder to /Applications from terminal. When I open the iterm file in applications, I still get the prompt to move it to Applications folder. Tried moving it to Users applications folder too. How do I avoid this error?
MacOS – How to avoid ‘Move to Applications folder’ prompt
applicationsmacos
Related Question
- MacOS – Why does finder report the applications are in the trash when I use Open With
- MacOS – How to move file from one users account to another? Permission denied.
- MacOS – Applescript Move current file to Folder
- MacOS – How to zip from terminal without creating folder structure of path to folder
- MacOS – How to remove or hide Apple applications from the app folder
- MacOS – Downloading unsigned applications
- MacOS – How to move the pre-installed applications (such as Chess) into a sub-folder
Best Answer
Although this is hard to check, it seems like Gatekeeper was being overly-protective, but has since been adjusted.
When using macOS Sierra (10.12) or later, if an app is in /Applications/ but prompts to be moved to /Applications/ when run, then chances are very high that the app has recognized that it has been subjected to Gatekeeper’s “app translocation”. If you’re interested in the details you can find them online, but the practical effect is that if you went into Terminal (or iTerm) and ran
ps auxwww | fgrep -i YourAppHere
You would see a path that is not
/Applications/YourAppHere.app
but more like/private/var/folders/[something-random-looking]/AppTranslocation/YourAppHere.app
.The preferred way of moving apps around (according to Apple) is with the Finder. If you drag an app from the ~/Downloads/ folder to /Applications then it will not be 'translocated'.
If you insist on not doing things Apple’s preferred way, your only option is to remove the quarantine flag from the app. This will remove all of Gatekeeper’s protections, so use at your own risk. You can remove the quarantine flag using this command:
Replace
"/Applications/iTerm.app"
with the appropriate app name as needed, obviously.You will need to re-launch the app for the app translocation to go away.