I need to change the mimetype of a file to customize the software that opens it.
Currently the mimetype is recognized as text/html.
The file has extension .pto
So I edited
/etc/mime.types and put:
at the end. Then I run:
sudo update-mime-database /usr/share/mime
yes nautilus insists it’s a text/html still
June 4, 2021, 9:35pm
Vladislav Grigoryev, it worked like a charm Thank you very much!
The icon is what I want and the application that opens it is what I want.
Just an annotation. In the command:
xdg-mime default stata.desktop application/x-stata-db
stata.desktop, is a custom desktop file of mime located in
~/.local/share/applications. It did not show up with autocompletion (that is, if you type
s and then press
TAB that desktop file does not show up), but it worked nevertheless in the end
July 14, 2021, 9:31am
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.