Mac cancels startup items

For obsessive-compulsive disorder, some apps are really troublesome to start up, so follow the steps below to basically disable them

1. If the corresponding app has the self-starting configuration file placed in the user folder, then you can directly enter the system preferences-users and groups-login item to set, click the +- sign to do the corresponding operation, as follows Diagram mode:

2. If you can’t find the software above, such as the software of Thunder, this kind of software is still humanized. You can cancel the startup in the settings. For the same reason, you can check whether there is this option setting in the corresponding software first, with Thunder Setting diagram:

3. At this step, you need to use the command line. First, the startup item of the macOS system will exist in the following directory as a .plist file:

  • /Library/LaunchDaemons: It runs when the system starts, and it runs without logging in.
  • /Library/LaunchAgents: Run after the user logs in.
  • ~/Library/LaunchAgents: User-defined user startup items
  • /System/Library/LaunchDaemons: Startup items that come with the system
  • /System/Library/LaunchAgents: Startup items that come with the system

And we only need to find the .plist file of the corresponding app, and then disable it

cd /Library/LaunchAgents

After entering, you can see all the .plist files, as shown below

Take disabling sunflower under mac as an example, just set the <key>Disabled</key> option in the corresponding .plist to true.

sudo vim com.oray.sunlogin.agent.plist
sudo vim com.oray.sunlogin.startup.plist

Adhesive

cd /Library/LaunchDaemons
sudo vim com.oray.sunlogin.helper.plist
sudo vim com.oray.sunlogin.plist

Then you're done

Guess you like

Origin blog.csdn.net/m0_38001814/article/details/106462115