how to get google chrome to open midi files with timidity

hey all, 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 file. I'm on Ubuntu 9.10 running xmonad over X11. thank you for your time. -Sean

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

got it.
found out that when I run xmonad over x11, you have to modify the xdg-open
script because it won't call gnome-open.
-Sean
On Wed, Apr 21, 2010 at 9:42 PM,
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 _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
participants (2)
-
Sean Neilan
-
wagnerdm@seas.upenn.edu