Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

To be honest, i don't know what happened, it was working fine and now it doesn't i don't feel i have changed nothing.

I have the .desktop file in .local/share/launchers. Its code is:

[Desktop Entry]
Exec=/usr/local/MATLAB/R2012a/bin/matlab -desktop

But i don't think the problem is related to this. Maybe some of the last updates? I don't know.

The point is that now, when i run matlab from its launcher a second icon will show up. Funny thing is that if i put the mouse on the new icon the text that appears onto it is not the one i have in my .desktop file, so my guess is that the launcher is launching the script but it is not capable of associating it with its icon, so it launches a secondary one.

So far it only happened with matlab. Any answer is welcome! Thanks!

share|improve this question

2 Answers 2

Add the following line to your .desktop file

share|improve this answer
I had already tried that one and didn't work. Anyway I tried again and it still happens. I have found that it also happens to a friend using gnome 3. –  user65346 May 24 '12 at 12:57

Add the following line to your .desktop file


For me it worked. The second icon appears only when matlab is starting and there is the little window with written "Matlab: the Language of Technical computing"; then it disappears and only one icon remains.

I've also installed the package matlab-support, maybe it can be useful.

share|improve this answer
Hey... that solution was already proposed and said that was not working :) I also have that package and have the same problem –  user65346 Aug 27 '12 at 6:43

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.