Re: mozilla / iceweasel and mailto: links
On Fri 13 Feb 2015 at 10:18:10 +0000, Curt wrote:
> On 2015-02-13, Charles Blair <c-blair@illinois.edu> wrote:
> > I tinkered with "Preferences/Applications". Did not
> > do anything about a special kind of Preference. If
> > this message gets posted, the thing worked :)
> >
> > If so, thanks!
> >
>
> I never click on those mailto links myself, but I followed my own advice
> for once and chose alpine as my mail client ('cause it's my main mail client)
> from the drop down menu (where it had defaulted to gmail?), clicked on a
> mailto link and ... it didn't work. Nothing.
>
> This must illustrate an ironic principle of which I am
> currently unaware.
Adapted from /usr/lib/mutt/mailto-mutt; mailto-alpine:
#!/bin/bash
exec x-terminal-emulator -e alpine "$@"
> But how would or does "it" know to open a terminal if you don't use
> a "wrapper script" like Brian suggested? Or am I missing something?
> Why am I seeing so many mutt users in forums and elsewhere using this
> kind of script?
If they are not using a DE this is the simplest (and maybe only) way of
doing it. A terminal window is drawn and mutt is executed from it.
If a DE is used this excecution of a terminal and mutt is taken care of
invisibly by a .desktop file. Basically, it is the same as using a
script.
But don't expect a .desktop file to do it for you with alpine in Xfce or
GNOME. As far as I can see one isn't provided. So you either devise your
own .desktop file or use a script.
Reply to: