How To Hide The Teamviewer Dock Icon in MacOS

Share This:

How To Hide The Teamviewer Dock Icon in MacOS 1

Until Teamviewer devices to build an option into the app that hides the dock icon, the only way to remove it is through some hacks. Since it is in the top menu bar already, I would prefer to have it not take up space in the dock. Unfortunately, doing these hacks will permanently remove the icon from the dock, even if the app is active. It’ll remain in the top menu bar though.

Option #1:
You can paste the following into terminal, press enter, type your account password, and press enter:

sudo bash -c 'killall TeamViewer_Service;
killall TeamViewer;
killall TeamViewer_Desktop;
perl -i -0pe "s/< \/dict>\n< \/plist>/\tLSUIElement< \/key>\n\t1< \/string>\n< \/dict>\n< \/plist>/g" /Applications/;
codesign -f -s - /Applications/;
launchctl unload /Library/LaunchDaemons/com.teamviewer.teamviewer_service.plist;
launchctl load /Library/LaunchDaemons/com.teamviewer.teamviewer_service.plist'

You might get an error about the LaunchDaemons if you don’t have Unattended Access setup, but that’s okay, it’ll still work.

Option #2:
If you prefer to edit the file yourself, follow these steps…
First, quit TeamViewer.
Then add the following to /Applications/, before the final and :


Then, sign the package:

sudo codesign -f -s - /Applications/

Then, reload the TeamViewer service:

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

Share This:



  1. Felipe Coury March 27, 2019
  2. John Peterson December 6, 2019
  3. Trip July 3, 2020

Leave a Reply