Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers 3

Simple way to do this is by using mimeopen command to open .maff file format using Firefox

Open terminal and type

mimeopen some_file_name.maff

You will be provided with available packages to open the .maff file

Please choose a default application for files of type application/zip

    1) Archive Manager  (file-roller)
    2) Archive Mounter  (mount-archive)
    3) Other...

select 3 from the option and enter the command as firefox

use application #3
use command: firefox

This will open up .maff file in Firefox and will be set as default program to open .maff file

share|improve this answer
    
#1: This only sets default application for mimeopen and not nautilus! #2 this still only relys on mime type so setting default application for .maff will sets that application for .zip too!!! (I tried and it did) –  4r1y4n Dec 7 '12 at 22:35
add comment

I don't know what a .maff file is exactly, but you need to define a new MIME type for it. Application associations are based on MIME type and not file extension.

share|improve this answer
    
.maff is the "Mozilla Archive Format" that is used by a firefox extension that actually is a zip file like .jar files; How should I define a MIME for that? Thanks –  4r1y4n Dec 7 '12 at 21:00
add comment

I posted my step-by-step solution here:

http://ubuntuforums.org/showthread.php?p=12505072#2

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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