Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I have many users using a Debian system through thin clients and I'm looking for a way to setup file associations globally for all the XFCE4 desktop environments.

Is there a way to setup the associations for Thunar or another file manager and the xfce desktop icons so that they are all the same accross all users?

share|improve this question
up vote 2 down vote accepted

To do that system-wide you need to create /usr/share/applications/mimeapps.list as follows

[Default Applications]

Use xdg-mime to find out the mime-type of your files:

xdg-mime query filetype /etc/passwd

You can find available applications with ls /usr/share/applications/*.desktop

share|improve this answer

Use mimeopen tool. It provides you nice options and the saved option is written to ~/.local/share/applications/defaults.list so that your selected option is saved as default.

   mimeopen -d /path/to/myfile


share|improve this answer

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.