1

I have an application that I'd like not to show up when I search for it is Dash. How can I keep the application, but prevent it from being found when I search for it?

Jacob Vlijm
  • 83,767

2 Answers2

1

To move the Steam Launcher out of /usr/share/applications, and place it into /opt, use the following command:

sudo mv /usr/share/applications/steam.desktop /opt/

The launcher should still work if you navigate to /opt and doubleclick it. An update of Steam will probably put a new launcher into /usr/share/applications.

For more info on what mv does, see man mv.

mikewhatever
  • 32,638
1

No need to make any changes that need sudo

How to prevent an application to show up in Dash

  • Copy the corresponding .desktop file from /usr/share/applications to ~/.local/share/applications:

      cp /usr/share/applications/steam.desktop ~/.local/share/applications
    
  • Open the local copy with gedit:

      gedit ~/.local/share/applications/steam.desktop
    
  • Add the following line to the head section of the file (before the line, starting with Actions=)

      NoDisplay=true
    
  • Save the changes, cLose the file, log out and back in and you're done.

To undo

Simply remove the (local) file ~/.local/share/applications/steam.desktop

Explanation

In general, it is considered bad practice to edit global .desktop files. Not only will changes effect all users, but if you fail, the file will be irreplaceable.

A local copy of the file however will (after log out/in) will overrule the global one. Also possible updated launchers in /usr/share/applications will be overruled without further measures.

The line NoDisplay=true will prevent the application to appear in Dash/the Unity Launcher

Jacob Vlijm
  • 83,767