Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Let's assume I have a program X that uses files with the extension .xez. How can I make X the default application for all files with the extension .xez?

My first idea was xdg-mime default X.desktop application/.xez. Yet this does not work.

Files with the extension .xez are still associated with Gnome Archive Manager since files with .xez represent a sort of .zip archive.

share|improve this question
1  
I suppose it works based on MIME types, that is, the actual file type, not extensions... are you sure ".xez" files aren't actually a ZIP archive? What's the output of "file whatever.xez"? –  njsg Dec 12 '12 at 8:16
    
I guess you're right: [orschiro@thinkpad ~]$ file testfile.pez testfile.pez: Zip archive data, at least v1.0 to extract. Is there any way to link .pez to X whilst still preserving .zip to be opened with File Roller? –  orschiro Dec 13 '12 at 0:27
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.