Home Ubuntu How To Hide Applications From Ubuntu Dash

How To Hide Applications From Ubuntu Dash

By sk
Published: Updated: 8.7K views

This brief guide explains how to hide applications from Ubuntu dash. When you install a new application in your Ubuntu desktop system, a corresponding menu entry (i.e. launcher) will be created and placed in the Dash or Application menu for quick access. The application launchers are nothing but a simple text files with a .desktop extension. The .desktop files acts as a shortcut to launch the applications.

All of the .desktop files are usually stored in one of the following directories:

  • /usr/share/applications
  • /usr/local/share/applications
  • ~/.local/share/applications

Let us have a quick look at the /usr/share/applications/ directory.

$ ls /usr/share/applications/

Here is the list of all applications' .desktop files in my Ubuntu 18.04 LTS desktop.

List .desktop files in Ubuntu
List .desktop files in Ubuntu

If you open a .desktop entry file, for example vlc.desktop;

$ cat /usr/share/applications/vlc.desktop

You will see the configuration details of the corresponding application.

View contents of vlc.desktop file in Ubuntu
View contents of vlc.desktop file in Ubuntu

Now let us see how to hide a specific application from Ubuntu Dash.

Hide applications from Ubuntu dash

When you click Show Applications option in Ubuntu launcher, you will see all installed programs in the Ubuntu Dash. If you wish to hide one of the program menu entries from showing up in the Ubuntu Dash, just follow the steps given below. I tested this guide in Ubuntu 18.04 desktop and it just worked fine as expected.

For example, I will show you how to hide the vlc application from Ubuntu dash.

When you type "vlc" in the dash, you will see its launcher icon as shown below.

vlc application entry in Ubuntu dash
Vlc application entry in Ubuntu dash

If you want to hide the vlc application from showing up in the Ubuntu dash, copy its .desktop file to ~/.local/share/applications/ directory using the following command:

$ cp /usr/share/applications/vlc.desktop ~/.local/share/applications/

Very Important Note - Always first copy the .desktop file to ~/.local/share/applications and edit the locally copied file. The local file will then override the global .desktop file on the next login.

Now open the copied file in your favorite editor:

$ nano ~/.local/share/applications/vlc.desktop

Add the following line before the line (if it exists) Actions=, but below the first line i.e. [Desktop Entry]:

Hidden=true
Edit contents of vlc.desktop file in Ubuntu
Edit contents of vlc.desktop file in Ubuntu

Save and close the file. Log out and log back in for this to take effect.

Now type vlc in the Ubuntu dash and you will not see it anymore.

To make the vlc application visible again, just remove the "vlc.desktop" file from ~/.local/share/applications/ directory.

Double check the vlc.desktop file path before deleting it. You should delete it from ~/.local/share/applications/, but not from /usr/share/applications/ directory.

Hope this helps.

You May Also Like

2 comments

Michael Mauch September 25, 2021 - 2:29 am

It’s good that you copy the desktop file to ~/.local/share/applications/, but why use sudo? You can read /usr/share/applications/vlc.desktop as a normal user, and you should write in ~/.local/share/applications/ as a normal user. So there’s no need to sudo for this.

Reply
sk September 25, 2021 - 10:36 am

Yeah, you’re right. Edited the guide. Thanks for pointing it out.

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More