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

How to change the applications associated with certain file-types for gnome-open, exo-open, xdg-open, gvfs-open and kde-open?

  1. Is there a way by editing config files or by a command-line command?
  2. Is there a way to do this using a GUI?

For both questions: How to do it per user basis, how to do it system-wide?

share|improve this question
For kde-open and other KDE apps: askubuntu.com/questions/165618/… – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Mar 30 '15 at 19:55
up vote 4 down vote accepted

It's all done with MIME types in various databases. xdg-mime can be used to query and set user values.

share|improve this answer

I had the same problem today, but more towards the gnome/cinnamon side of things.

You can query and change the default mime type like this:

gvfs-mime --query inode/directory

gvfs-mime --set inode/directory nemo.desktop
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.