2

enter image description here

As shown in the screenshot above, there are many multiple duplicated entries for same application when using the open with menu.

open with appears when right click on a file or whatever and choose open with

My question: How to reset this menu or delete the duplicated entries?!

PS This is not duplicate. This answer here How can I clean up the Open With.. Menu is not valid anymore.

Another PS: Those are wine apps, but the status is same even for native apps, moreover those wine apps I've already uninstall most of them

I'm using Ubuntu 12.04 with Nautilus 3.4.2

Maythux
  • 84,289

1 Answers1

2

You can use mimeopen .doc at the terminal to see for example which applications are associated with the .doc file extension and then go to $HOME/.local/share/applications/ directory and remove the extensions associated with uninstalled applications.

You can then apply a similar approach to other file extensions.

Harris
  • 2,598
  • +1 for your idea but this would be tough job to do. I'm looking for something simpler. but if i don't find i'll consider your answer – Maythux Apr 29 '15 at 15:38
  • I think this is the only solution unless you find a GUI application that does this for you… – Léo Lam Apr 29 '15 at 15:41
  • If you want to reset everything and use the system defaults, you could just remove the whole ~/.local/share/applications directory (note: this will also affect custom Unity launcher icons), since there's a system-wide /usr/share/applications with a sane configuration. – Léo Lam Apr 29 '15 at 15:42