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.

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

2 Answers 2

up vote 3 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
add comment

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

So you can query and change the default mime type for things by

gvfs-mime --qery inode/directory

gvfs-mime --set inode/directory nemo.desktop
share|improve this answer
add comment

Your Answer

 
discard

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.