Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have made a .desktop launcher for my dock. I try to put a "." after the name of file, but he doesnt hide. Exemple : .Firefox.desktop If i delete it, my Firefox icon in my dock can't be open. I have to hide my desktop file, Thanks !

share|improve this question

To show or hide a .desktop file in a given desktop environment we should use its corresponding entry keys:


Hence the follwing entry will only show the desktop file in GNOME (e.g. classic), and KDE but not in Unity:


Or, alternatively we may wish to define en exclusion with

share|improve this answer

How are you renanimg this file? I've noticed that when I rename desktop files using the Nemo file manager (which is used by the third-party "Cinnamon" desktop), the old filename remains present in the terminal (if you open the file using a text editor, the name= field changes); I imagine the same would go for the Nautilus manager (which is used by the default desktop, on the regular flavor of Ubuntu).

I would recommend using a terminal to change the file name. Here's an example of how you can do this: mv /path/to/Firefox.desktop /path/to/.Firefox.desktop. You can simply replace the /path/to part with the path to the Firefox.desktop file (unless of course you prefer to use cd to move straight to that directory).

Or, you could open the file with any text editor, and use the "Save As" function to create a new file with a new name, and then delete the original file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.