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.

The dialog box in question here is the one you get with the context menu option "open with other applications". Wine seems to have inserted more than a dozen or so entries for each application I install, which makes it a pain to find the correct application:

alt text

What can I do to remove the duplicates?


Update: Neither of the two solutions really work. The bug is interesting, but the symptoms does not match my problem (I'm not having problem with uninstalling applications, but rather the things that are inserted after installing them), and with the other one, all references to the Wine application are removed, which actually makes the problem worse (although it may be an acceptable solution if nothing else can be found). So this is still an open question; any takers?

share|improve this question
4  
I think you should report this bug at Launchpad.net –  DrKenobi Nov 5 '10 at 4:12
    
The same Wine component (winemenubuilder) is responsible for both problems, the one at the launchpad bug and the one you're having. A fix is in progress at winehq, but it was in part blocked by a bug in Ubuntu that I've now taken care of: bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/602799 –  Scott Ritchie Mar 31 '11 at 1:17
add comment

3 Answers 3

Remove wine*.desktop files from ~/.local/share/applications and edit ~/.local/share/applications/mimeinfo.cache

If you're feeling lazy you can just run:

sed -i '/wine/d' ~/.local/share/applications/mimeinfo.cache

and:

rm -r ~/.local/share/applications/wine*  

or all in one line:

rm -r ~/.local/share/applications/wine* ; sed -i '/wine/d' ~/.local/share/applications/mimeinfo.cache 
share|improve this answer
    
Anyway to do this a program, I have about 100 duplicates –  Will Oct 10 '10 at 9:29
2  
it could be done on the command line using rm ~/.local/share/applications/*<insert most of the name of the duplicate here>.desktop –  RolandiXor Mar 13 '11 at 19:30
    
Thanks, it works. –  Özhan Düz Dec 16 '11 at 11:04
    
Thanks. I had another (probably redundant) subdirectory "wine" in ~/.local/share/applications/, and after checking the file modif date of the *.desktop files in this dir ~/.local/share/applications/wine, I decided to remove this directory and all files inside. I suspect it came from an older ubuntu distri (now I'm on 12.04). After deleting, a lot of duplicates were gone. I was not able to remove them thru alacarte. –  knb Oct 18 '12 at 8:09
add comment

Just found this post on webupd8: http://www.webupd8.org/2010/12/fix-open-with-menu-when-using-ms-office.html#more

Just right click the Ubuntu Menu Logo, select "edit menu" and remove unused entries under "other".

share|improve this answer
    
This post was helpful. Although, in Ubuntu 11.04 you can't right-click on the menu, you have to either have to hit super (windows key) and type Main Menu, or run "alacarte" from command line. –  Senoculus Jul 20 '11 at 4:03
add comment

It's a known problem. Here is the associated launchpad bug: https://bugs.launchpad.net/ubuntu/+source/wine1.2/+bug/420089

Unfortunately it's not an easy problem to fix in Wine (or Gnome), because there isn't a good way for figuring out when an application has been removed.

share|improve this answer
2  
I should note that I have been having an ongoing discussion with the author of winemenubuilder about how to correctly solve this problem (as well as obsolete entries in the start menu) –  Scott Ritchie Mar 9 '11 at 12:22
    
I've seen success in getting menu entries removed, but the bug still persists in some ways. –  RolandiXor Mar 13 '11 at 19:29
    
It has a easy fix . –  Alaukik May 8 '11 at 9:08
add comment

Your Answer

 
discard

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.