I've downloaded IntelliJ Idea, then just unziped it and run it by execute idea.sh
in terminal and made a new project. I wanted to see what would happen if I simply right click on icon at the left side bar in Unity -> lock to Launcher
instead of standard way of making new idea.desktop
file also used for making Eclipse launcher icon. And it just made icon on launcher wich runs that particular project. After that I've made idea.desktop
icon standard way and it looks like this:
[Desktop Entry]
Name=IntelliJ IDEA
Type=Application
Exec=idea.sh
Terminal=false
Icon=/opt/idea/idea-IC-135.909/bin/idea.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=IntelliJ IDEA
X-Desktop-File-Install-Version=0.22
Now when I click on that standard idea.desktop
it runs another instance of application (that one which I've made with right click on icon on left side bar in Unity -> lock to Launcher
) and it results with situation shown on image below.
I am trying to find this something.desktop
icon which I have made with lock to Launcher
if any and delete it, but I can't find it in /usr/share/applications
.
- What Ubuntu actually does when I click on
lock to Launcher
? - Whether it creates some
.desktop
file or something else? - How can I delete icon made by
lock to Launcher
?
I had a similar problem I just resolved where firefox was creating these "evil twin" entries. The process involved in matching running applications to icons is called
bamfdaemon
. Firstly find your session's version of this daemon:Now we're going to trace the startup of your application - so close it down.
Now I got a warning about being unable to connect to that pid, so I re-ran it with
sudo
.Start your app and wait until the icon appears. Then return to your strace instance and kill it with
Ctrl-C
.Now look through the ~/bamf.txt file - what I found was bamf notices my new process (firefox)
Then looks up the executable (for firefox its in lib), then opens the
.desktop
file it found as best match:Hmmm,... thats funny - firefox-4.0 was a beta version I installed yonks ago, so it looks for the exec file in the
.desktop
:And in my case I got a bad icon because that executable has been gone since 2011! Move that
.destkop
out of the way and suddenly firefox matches its icon again.In your case you can probably stop at the point where you see which
.desktop
file it opens - thats the one you'll want to delete.