I have an app ("Android File Transfer"), that adds itself to the System Preferences → Users & Groups → Login Items list. If I delete it with the "minus" button, the app re-adds itself next time it's launched. There is no option for controlling this in the app.

Is there any way to prevent an app from doing this?

  • 1
    Sound s like the app is seeing of it is in login items and if not it is adding itself back - You woiuld need to ask the app developers to chnage that
    – mmmmmm
    Jul 2 '18 at 18:14

Its kind of annoying but you can try locking the plist that controls login items.

  1. Navigate to `~/Library/Preferences/loginwindow.plist
  2. Select the file and press Command + I
  3. Check "Locked" enter image description here

Note: This will prevent all applications (and you) from adding or removing login items, so remove the application from login items and then lock the file.

  • Thanks JBis. But what I found is that it is better to remove Chrome.app from macOS for good. For it does not do good upon macOS. Aug 13 '19 at 7:12
  • There are 3 apps doing this on my machine and this solution only stopped one from adding itself back :/
    – brasofilo
    Oct 3 '19 at 1:51
  • this does not work on macos v11.1 Jan 24 '21 at 14:32

Sometimes, upon installation, applications add files to the root level Library folder's /Library/LaunchAgents, /Library/LaunchDaemons or /Library/StartupItems subfolders that can result in the behavior you're observing. You will need Admin access in order to remove any files related to the "Android File Transfer" app that may be located in these folders.

  • could not find android file transfer in any of these location Jan 24 '21 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .