Would be nice to be shown the magic button that will help me remove this eyesore:

It's Nautilus 2.30 on Debian (and has been there in previous versions as far as I can remember).
|
Would be nice to be shown the magic button that will help me remove this eyesore:
It's Nautilus 2.30 on Debian (and has been there in previous versions as far as I can remember). |
||||
|
|
|
This list gets created by analyzing .desktop files located at:
There might be more than one usecase per application, take for example the media player
The only difference between those files is the starting parameter and the MimeType list.
So we have three 'Banshee Media Player' in the 'Open with' list (and maybe also in the 'Main Menu'). The other way of filling this space is by creating personal .desktop files in Every time you create or move an application within Deleting two of those entries from
Removing any entries from If you really don't have any duplicates in those two folders, try removing any duplicates from |
|||
|
|
|
If you look in |
||||
|
|
I know this thread is old, but this is caused by wine for many.
cleaned up this mess for me. |
||||
|
|
|
Acknowledging this thread is old, I was perplexed by this issue myself. I personally felt deleting the files or playing "cleanup" was unecessary, as was just tweaking things for the current user. If there is more than 1 .desktop file, can't each have a unique description? As far as Linux has come, have certain app developers really overlooked simple things like this? I found if you open the .desktop files in a text editor, the Name field is what displays in the "Open With" menu. So for me, I looked for the .desktop files I knew were creating the issue (for instance, the 3 Banshee files). Looking at each one, the difference almost always had to do with which mimetypes the shortcut is handling. This is because some programs prefer to pass different parameters depending on the mimetype. Only in 1 instance did I find duplicate entries the result of an application upgrade not cleaning up it's old .desktop file Armed with that discovery, I changed the Name fields of the known duplicate entries to reflect this. For instance, editing the .desktop file Banshee has specifically to handle Audio CD's, I made the name read as such:
Rhythmbox is also a good example, as it has a separate .desktop file specifically for handling CD's + MP3 players but each shows up the same. My guess is the 1 file loads the application and puts focus on the unit rather than your library. This is worth renaming, then, as you wouldn't want this to happen when handling your MP3/OGG files. Anyway, I think this makes the Open With menu look clean without just deleting files that appear to be useful. Whether or not these changes persists between application updates is yet to be seen...but they are simple and quick edits that could even be scripted. The shell helps tremendously in that case. For instance, to see all the filenames (with path) with such duplicate entries:
Where "Banshee" is of course what shows up more than once in the Open With menu. In the example provided up top, the app was called Geany. With this, you can send the resultant files straight to your editor. If you are not an expert in reg expressions, the ^ and $ specify beginning of line and end of line, respectively. This keeps the system from finding lines like |
|||
|
|
|
Kind of a shot in the dark, but have you tried clicking on one of the entries, and clicking the Remove button as seen in your screenshot? If this removes all of the entries, you could just re-add it. |
|||
|
|
|
You can also look in Gnome's "Applications" menu editor and remove duplicates from here. |
|||||
|