When you log out of your Mac or restart it, deselect ”Reopen windows when logging back in” when prompted.
How to disable startup programs? Do you want to stop programs from running at startup? There’s an easy way to remove programs from startup and get your Mac to load faster on launch. The fastest way to turn off startup items on Mac is an app like CleanMyMac X. This tool is notarized by Apple and does lots of helpful things. If you just want TeamViewer to start when you're logged in (including if your computer is set to automatically log in on boot), then do what CaseyIT says. If you want TeamViewer to genuinely start on boot, you need to use launchd. First, you'll need to identify the actual executable. Conveniently the TeamViewer development team has made TeamViewer available for Windows, Mac, and Linux. This tutorial will assist in configuring your machine to auto-start TeamViewer before a session has been initiated so that the user is able to initiate the login of any user allowed to login to the system. In this article, we will show you how to disable TeamViewer shutdown. It is worth noting however, that once this option is activated, TeamViewer can't be closed. Disable TeamViewer Shutdown. Click on Extras Options; Go to Advanced and click on 'Show advanced options'. Check 'Disable TeamViewer shutdown'. Click on Ok to validate.
Or start up in safe mode, then restart normally. This doesn't change the setting, but your Mac forgets any windows that were open the last time you logged out or restarted.
If you deselect this setting and an app continues to open automatically:
To prevent apps from remembering the windows they had open, choose Apple menu > System Preferences, click General, then select ”Close windows when quitting an app.”
Or press and hold the Shift key while opening an app. This doesn't change the setting, but the app forgets any windows that were open the last time you quit the app.
If these steps don't work for an app, the app might have its own setting for reopening windows. Check the app's preferences or documentation, or contact the app's developer.