xdg-email/xdg-open and chromium

Hi!

This is not directly a problem with fvwm, but it belongs to it.
The chromium-browser uses xdg-open/xdg-email to open “mailto:”-links. And the standardbehavior - when there is no desktop-environment used - is mutt in a terminal.

So when i have “only” fvwm, chromium opens mutt and not icedove/thunderbird, which is the MUA i use.

Are there any ideas out there, to change some Environment-Variables or something else, which survives an update of xdg-open/email? I can edit the source of this skripts, but that is not persistent…

scientific

The “normal” way to set this is: wiki.archlinux.org/index.php/De … plications

For example, assuming your Thunderbird .desktop file is named “thunderbird-bin.desktop”, you could edit “/usr/share/applications/defaults.list” and insert the following contents:

[Default Applications]
x-scheme-handler/mailto=thunderbird-bin.desktop;

However, as Chromium launches mutt by default, it may indicate you have mutt set as default mailto link opener somewhere. If the method doesn’t work, you could check if you have some settings elsewhere, like, look at what this command prints out and check all the files it displays:

XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/mailto

And check if you have something in gconf:

gconftool-2 --get /desktop/gnome/url-handlers/mailto/command

If you think xdg-email is used but it somehow is not launching the correct command (at least the xdg-email here (xdg-utils-1.1.0_rc1_p20120916) doesn’t follow the rules), you probably would need to export something like “XDG_CURRENT_DESKTOP=GNOME”. Or you may create a xdg-email-hook.sh if your xdg-email uses it.

jakob@pluto:~$ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/mailto Checking /home/jakob/.local/share//applications/mimeapps.list userapp-Icedove-TW3XCW.desktop jakob@pluto:~$ gconftool-2 --get /desktop/gnome/url-handlers/mailto/command /usr/lib/icedove/icedove %s

I searched the code from xdg-email, and there i found, that the variable “DE” isn’t set with FVWM, which is logical, because FVWM isn’t an desktop-environment. xdg-email asks for gnome, gnome3, kde, xfce, generic, lxde… and in case of no variable set “DE”, it takes mutt.

I’ll have a look on your tipps, and will report, which one solved my problem.

scientific

I put the line

export XDG_CURRENT_DESKTOP=GNOME
in my .xsession, now chromium opens the mailto-handler with the default-MUA for gnome. In my case icedove.

thx for your hints!

scientific