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.

I'd like to have certain file extensions to be opened with some specific programs. What are the files the edit ? I have found in /usr/share/appplications/default.list but it doesn't work.

share|improve this question

1 Answer 1

up vote 10 down vote accepted

Have a look at the file $HOME/.local/share/applications/defaults.list

There is a section [Default Applications] to specify the programs for particular mime types. You can add for example:


The .desktop files can be found in /usr/share/applications/ or you can create your own files under $HOME/.local/share/applications/. To find out the mime type of the files, run

file --mime-type <some_file>

Alternatively, in KDE one can accomplish the same in GUI in File Associations inside System Settings.

share|improve this answer
I have modified the mime type `MimeType=image/x-exr;image/tiff;image/png;image/jpeg;image/dpx;' in the .desktop file. –  igor012 Jun 20 '12 at 14:47
On my version Fedora release 18 (Spherical Cow) running xfce, the file was named mimeapps.list, not defaults.list. JTYSK –  publ1c_stat1c Aug 4 '13 at 21:22

Your Answer


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.