How can I associate files with same MIME but different extensions to different applications.
For example both .maff
& .zip
files have application/zip
MIME ; But I need to open .maff
by Firefox
and .zip
by ArchiveManager
Setting this via Open with
dialog associates application to MIME that causes both files open with same application.
How can I configure this in Gnome?
I'm using Ubuntu Lucid Lynx.
Thanks
Best Answer
I strove to make Firefox ⟷ maff association only for one user (me). So I didn't touch files under
/etc
.I did the following:
Restore correct association between ZIP-files and archive manager (I did it within default file manager Nemo).
Create definition of MIME type. In my case I created
firefox-maff-my.xml
file in~/.local/share/mime/packages
directory with the content provided below:Update MIME database
Edit
~/.local/share/applications/mimeapps.list
. Addline right under
[Default Applications]
.Log out, then log in.
In case of doubts you can make backup of each involved file before editing it. If something will go wrong you can revert everything you did (just restore original files, remove
firefox-maff-my.xml
and runupdate-mime-database ~/.local/share/mime/
again).I've faced similar issue in Linux Mint 17.1 Cinnamon. Perhaps this also will work for GNOME (because both follow freedesktop.org).