How to Hide App Icons in Mac Dock Even When Running on

How to Hide the Dock Icon on Mac

In this example, we'll hide an application that users often install by default on their Macs, the Safari web browser. There are a few ways to do this, but we'll focus on the simplest method: using the " defaults " command to edit the application's " Info.plist " file.

First, we'll open a new instance/window of Terminal (in Applications > Utilities ).

How to Hide App Icons in Mac Dock Even When Running on Picture 1

Since modifying the ' Info.plist ' file usually requires elevated privileges, issue the following command, authenticating with your password (or Touch ID) when prompted:

sudo defaults write /Applications/Safari.app/Contents/Info LSUIElement -bool yes

After executing the command, restart the application and you will see its icon hidden from view while still running in the background. But what if you want to undo the changes you made? All you need to do is simply change the last word of the command from " yes " to " no " as shown in the command below:

sudo defaults write /Applications/Safari.app/Contents/Info LSUIElement -bool no

How to Hide App Icons in Mac Dock Even When Running on Picture 2

Then use the following command to kill the Safari process:

killall Safari

When you reopen Safari, you'll see the app appear in your Mac's dock by default!

If you want to hide a different app, you just need to edit the path. So instead of:

/Applications/Safari.app/Contents/Info

You can hide Slack by:

/Applications/Slack.app/Contents/Info

Why hide the Dock icon?

Depending on how and when you use your Mac, there may be some applications that you want to always run. This could be something like a remote desktop server or a program that needs to be open to receive hotkeys, automation commands, or shutdown commands.

If one of these tasks doesn't have an option to show a menu bar icon instead of a dock icon, it can cause unnecessary clutter in your dock. Clean it up by hiding the icon using the command above!

4 ★ | 1 Vote

May be interested

  • 8 tools to hide programs running on Taskbar or Traybar8 tools to hide programs running on Taskbar or Traybar
    if you want to hide a program or application running on the taskbar for some reason, you don't know how. the network administrator will introduce you to 8 useful tools to help you hide the program in the taskbar.
  • How to hide all desktop icons on MacHow to hide all desktop icons on Mac
    tired of a cluttered desktop full of different program icons? don't really want to rearrange everything?
  • How to create folders on iPhone DockHow to create folders on iPhone Dock
    the dock on the iphone only has room for four icons (with an ipad of eight) and most people just keep their favorite apps there. but do you know you can add application folders to this dock? this is how you do it.
  • How to Change the Dock Size on a Macintosh ComputerHow to Change the Dock Size on a Macintosh Computer
    some people find a large dock distracting while others may find a small dock unfriendly or hard to read. if you are wondering how to find the perfect dock size for you, start with step 1 to customize your mac's dock. log onto your...
  • How to hide icons on Windows 11 desktop?How to hide icons on Windows 11 desktop?
    there are many ways to hide all the icons on the windows desktop to get a clean, distraction-free interface. here is a guide to hide icons on the windows 11 desktop.
  • Add the Dock for Mac Snow LeopardAdd the Dock for Mac Snow Leopard
    the dock utility bar is a great way to store the programs you use often without going to the applications folder to find them whenever you need it.
  • How to remove widgets visible on the Edge toolbarHow to remove widgets visible on the Edge toolbar
    the edge browser also displays widget icons on the toolbar for us to access. however, it's really unnecessary to spread the icons as there will be gadgets you don't use often.
  • Application to create the best dock for Windows 7, 8 / 8.1 and Windows 10Application to create the best dock for Windows 7, 8 / 8.1 and Windows 10
    are you bored with the traditional windows interface? if you want to change the wind for windows, in addition to updating to newer versions, you can create dock for windows. today, tipsmake.com will introduce to you the best dock creation software for windows 7, 8 / 8.1 and windows 10 versions.
  • How to hide the extension icon on Google ChromeHow to hide the extension icon on Google Chrome
    to hide the extension icon on google chrome, making chrome toolbar neat is very simple. we just need to make the icon hide in the menu of the utility.
  • How to customize the Ubuntu dock to look like macOSHow to customize the Ubuntu dock to look like macOS
    one of the key features of the gnome 42 desktop environment is a highly customizable dock or dash. let's see how you can customize the new dock in ubuntu 22.04 lts (jammy jellyfish) and above to have the same look and feel as on macos.