Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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

Browse other questions tagged or ask your own question.