Per Olofsson schrob:
> 2010-06-28 15:55, Jonathan Nieder skrev:
> > As you can see, I suspect would require some kind of per-package
> > registration to be usable.  Grasping at straws, I suggest maybe a
> > field in the .desktop file.  Is there prior art for this?  Is there a
> > relevant mailng list?

I'm not aware of anything. But I'm being bold and propose $MAILER as
user-configurable place, analogous to $EDITOR, $BROWSER, $PAGER.[1]
Patch attached.

Actually, while writing that patch, I discovered that it's possible to
configure/override xdg-email's behaviour by placing xdg-email-hook.sh in
your path. That's completely undocumented, and IMHO worse style than an
environment variable, so I'm going to pretend it doesn't exist.

> Or use "/usr/lib/mutt/mailto-mutt URL".
> [...]
> As I said, I think workarounds should go into the xdg-email script.
> E-mail clients wishing to avoid workarounds can always learn to accept
> mailto: URLs as arguments.

Well, mutt does, so xdg-email should try mutt if it doesn't find a DE.
Patch attached for that too. It checks for existance of ~/.muttrc to
avoid biting GUI people who happen to use a box with mutt installed.

Both patches apply independently or on top of each other. Please apply
both. :)

And now that I've made xdg-email open mutt, I realize that my personal
scenario is not helped at all by that, because none of my infrequently
used browsers (links2, arora, konqueror, iceweasel, dillo) actually
_uses_ xdg-email by default, they still all stand there looking stupid.[2]
I guess links2 and iceweasel win points for at least offering a way to
configure a mailto: handler. Gnagnagna. Dealing with graphical browsers
is detrimental to my health.

    Jan

[1] $MUA would be more technically correct. But consistency wins, IHMO.
[2] Well, arora spawns konqueror for standing there & looking stupid. ;)
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: signature.asc
Description: Digital signature

Reply via email to