
21 Apr
2010
21 Apr
'10
10:42 p.m.
Quoting Sean Neilan
I'm just wondering if other users of xmonad have been through the process of getting files to open with specified programs. like, when I click on a downloaded midi file in google chrome, I'd like it to run timidity on that
Chrome just calls xdg-open. Have a read through the xdg-open source code (it's a quite readable bash script). If you've got Gnome, KDE, or XFCE running, it will use the corresponding openers, so you should just set the default application using that DE's settings widget. Otherwise, it's trying $BROWSER, then firefox, then a few other fallbacks, so just set $BROWSER to something that knows how to choose the right program for its argument and rock on. Cheers, ~d