Hi Thomas, Excerpts from Thomas Jost's message of Mon, 29 Nov 2010 09:10 +0100:
Le 29/11/2010 03:26, Sergey Manucharian a écrit :
I wonder if somebody could already figure out how to handle file and protocol associations for Chromium. For those who use a DE like KDE/Gnome most probably everything works out of box. There is an article in wiki how to use chromium with no DE [1]. It suggest to use mimeo and xdg-utils-mimeo, but it simply does not work (at least in my case).
It works for me with mimeo and xdg-utils-mimeo (I'm using Chromium with Awesome WM -- no DE). You have to use ~/.config/mimeo.conf to store your associations, and to use at least mimeo 2010.11.02 (first version that integrates my patch to use this file by default).
Here is my mimeo.conf:
-----------------8<----------------- # Spotify URLs /usr/local/bin/spotify %U ^http://open.spotify.com/ ^spotify:
# Regular URLs /usr/bin/chromium ^http:// ^https:// ^ftp://
# E-mails /usr/bin/thunderbird -compose ^mailto: -----------------8<-----------------
This is enough to have working Spotify URLs. I guess that for VLC and MMS streams, you would just need the following:
-----------------8<----------------- /usr/bin/vlc ^mms: -----------------8<-----------------
To test mimeo, you should first try by running directly "mimeo mms://my-url" in a shell, then "xdg-open mms://my-url", and finally from Chromium.
Does such a setup work for you? If it doesn't, could you please post your mimeo.conf here?
Thank you for the information! I trusted the wiki page and haven't looked into the mimeo code: wiki states the conf file is "~/.mime.types"- and, of course, it didn't work for me. Now everything is ok. Also I have fixed the wiki page for Chromium. Another question - why Chromium depends on gconf? IMHO that dependency could be optional. Thanks again, Sergey