Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 want to add a working eclipse icon to the launcher but when I try to create a file "eclipse.desktop" under ~/.local/share/applications/ I get an error indicating that applications is not a directory. What may the reason be? Regards...

Scrrenshot :

share|improve this question
Terminal application – Rushen Oct 16 '11 at 12:15
myuser@myusercomp:~$ cd /home/myuser/.local/share/applications bash: cd: /home/myuser/.local/share/applications: Not a directory – Rushen Oct 16 '11 at 12:41
mkdir: cannot create directory `applications': File exists – Rushen Oct 16 '11 at 14:37

As the error says ~/.local/share/applications should be directory(folder) not a file. In your screen shot it is a file. so delete that file, create a folder with same name and then try again.

In terminal

rm ~/.local/share/applications
mkdir ~/.local/share/applications
share|improve this answer

You provide very little information, but my guess is that you tried to do it as root. Don't use sudo when you do that, as root doesn't have that folder, and it wouldn't be of use to you anyway.

$HOME/.local/share/applications is supposed to be a directory. If some application uses it for anything else, then that's a bug. Just delete the file and create a directory by the same name.

share|improve this answer
Thank you for the reply but no, not as root – Rushen Oct 16 '11 at 12:04
Please edit your question to say what you did, then. That should indeed be a directory. – Jo-Erlend Schinstad Oct 16 '11 at 12:09
Added a screenshot – Rushen Oct 16 '11 at 13:02

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.