TeamViewer Dock Icon – Hack to Hide TeamViewer Dock Icon and Issue with Restarting App

dockgpumenu barremote desktop

I don't like TeamViewer taking up space on the Dock. I followed this tutorial to hide the dock icon, leaving me with only a menubar icon, which works great. TeamViewer is set to start at login.

However, in a MacBook Pro with discrete graphics, when logging into another computer, TeamViewer forces a switch to discrete graphics, and even after logging out of said computer, it stays that way, which is of course awful for battery life.

I am forced to quit TeamViewer so I can go back to integrated graphics and decent battery life. However, if I try to launch TeamViewer again, it doesn't work — I get a request to type my password to install a helper tool, and then nothing.

What should I do to simulate whatever procedure is performed during system boot that allows TeamViewer to start?

Best Answer

I solved the problem by running the following command in Terminal after killing the previous TeamViewer instance:

sudo launchctl load /Library/LaunchDaemons/com.teamviewer.teamviewer_service.plist

Next, I launch TeamViewer as usual. It shows up in the menu bar, as expected.

For those unfamiliar or uncomfortable with Terminal, the following AppleScript could be used, assuming TeamViewer is installed in /Applications:

do shell script "launchctl load /Library/LaunchDaemons/com.teamviewer.teamviewer_service.plist" with administrator privileges
do shell script "open /Applications/TeamViewer.app"