How to associate a specific type of file using File View,

After installing fresh Ubuntu (13.04) pem (SSL certificates) are associated with "View file" (right-click on the file in Nautilus, I see "Open with View file"), which shows a clear text version of the certificate well.

Now I wanted to edit the file and therefore select "Open with another application" and select gedit. This worked, but now I see only "Open with gedit" and cannot return to the "View File" program (or add it as another option). I also noticed that many applications (for example, Sublime, which are available in Unity Lense) are missing from the dialog where I can choose which application to use to open the file.

How can I get more (everything that is known for unity, for example, lenses) shown in a dialog box where I can associate a file type with an application? Where can I find the file view application?

+6
source share
1 answer

Look at the file:

~ / .local / share / applications / mimeapps.list

This will contain something like this (this example is for a * .crt file):

 [Added Associations] application/pkix-cert=gvim.desktop; 

Delete the violation line. You do not need to restart anything for the change to take effect.

+8
source

Source: https://habr.com/ru/post/946485/


All Articles