[Portland] [PATCH/RFC 0/2] Re: xdg-email without GNOME, KDE, or XFCE
Jonathan Nieder
jrnieder at gmail.com
Thu Sep 30 17:15:50 PDT 2010
Hi again,
Sorry for the long silence.
Per Olofsson wrote:
> 2010-06-29 14:54, Jonathan Nieder skrev:
>> 1. xdg-open uses the $BROWSER environment to find a handler for remote
>> URIs, which makes a lot of sense. But xdg-settings does not provide a
>> means (or hint) to read or change that variable.
>
> How exactly should it change the variable? I don't think it should be
> poking around in the user's ~/.profile
Maybe it could look for a file in ~/.config when $BROWSER is not set?
But this does not feel so urgent to me.
> Regarding a "hint", how would that be done? xdg-settings is
> non-interactive, and usually called by a GUI application-
Since it is non-interactive, I guess the only thing to do is mention
the configuration mechanism in the man page.
Maybe xdg-settings could have an option to go interactive? This
would be useful in desktop environments as well (automatically opening
the "control center" app).
>> A simple solution might be an $XDG_MAILER variable that gets set to a
>> command that should be passed a mailto: URI as an argument.
>
> Sounds good.
Ok, here's a quick attempt.
Thoughts?
Jonathan Nieder (2):
xdg-email: Explain in man page how to set the default mailer
xdg-email: learn XDG_MAILER variable
scripts/desc/xdg-email.xml | 90 +++++++++++++++++++++++++++++++++++++++++++-
scripts/xdg-email.in | 8 ++++
2 files changed, 96 insertions(+), 2 deletions(-)
--
1.7.2.3
More information about the Portland
mailing list