Le mardi 16 mars 2010, à 17:33:08 +0100, Per a écrit : > Hi, > > arno renevier skrev: > >open_generic behaviour does not seem ideal because webbrowsers usually don't > >known how to open mailto links, > > Well, that depends on the browser. w3m can send mail, for example. > Firefox can be configured to use a specific MUA for mailto links, > including webmail services.
True, but it's also possible to have it the other way: calling a mailto handler that will possibly call firefox instead of calling firefox that will possibly call an external command. Here is an example of that: http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/ > >Also, even when not running gnome or xfce, gvfs-open and exo-open are both > >configured on my system, and work correctly. > > How do you pick the default mail client for them without running > Gnome or Xfce? I configured gvfs-open with gconftool gconftool-2 --set /desktop/gnome/url-handlers/mailto/command "mailto-handler %s" --type string It's possible to have gconftool installed without installing the whole gnome. About exo-open, I've just launched exo-open mailto:something and at first launch, it asked my to configure a mail client. I don't known if it's possible to have exo-open installed without installing the whole xfce. > >I don't know what's the best way > >to have xdg-email work correctly on generic desktops: if bug #353587 is > >fixed, > >that will be easy to implement; otherwise, may be use and parse a custom > >environment variable (MUA? MAILER?); otherwise, still try open_gnome, > >open_kde > >and/or open_xfce in generic case. > > I guess that an environment variable would be best. But there > doesn't seem to exist a standard variable like $BROWSER yet, no? I'm not aware of a standard variable
signature.asc
Description: Digital signature

