When you right-click a file you can select from the context menu "open with", to select the app you want to open the file with. If I want to prevent(or remove or hide) an app to show in the context menu, how do I do it? Thanks.

1 Answer 1


The only real way to do this is to uninstall the app.

You can modify the app's .desktop file to indicate that the app cannot handle that file type, but that comes with a couple obvious drawbacks:

  • You are telling the system that this app cannot handle that file type at all. Which means anywhere the system tries to list apps that open that file type, it will no longer recognize that app

  • Any time you get an update for that app that affects the .desktop file, your changes will be overwritten.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.