How can I change the run associations?

Asked by SanskritFritz on 2011-03-01

When I click on a folder in the 'Computer' tab for example, Firefox opens with that folder. Clicking on a png file in 'Recently used' spawns Gimp with that file. How can I change those associations? I want to open folders with Roxfiler or png files with Feh.
I'm using standalone compiz, no DE installed.

Question information

Language:
English Edit question
Status:
Solved
For:
GnoMenu Edit question
Assignee:
No assignee Edit question
Solved by:
SanskritFritz
Solved:
2011-03-03
Last query:
2011-03-03
Last reply:

Found the answer myself. A quick look into the source code revealed that gnomenu uses xdg-open for opening documents and urls.
So, to find out what mime type a document belongs to:
xdg-mime query filetype <filename>
To set the default application for opening the document:
xdg-mime default <myprogram>.desktop mime/type