[Alpine-info] How to unlynx links in Alpine?
Thomas Gramstad via Alpine-info
alpine-info at u.washington.edu
Sun Jan 5 13:19:35 PST 2025
As noted I have /usr/bin/firefox in my Alpine config, that was
the first thing I checked.
Nothing relevant in .mailcap.
But /etc/mailcap says this:
----
### Begin Red Hat Mailcap
###
audio/*; /usr/bin/xdg-open %s
image/*; /usr/bin/xdg-open %s
application/msword; /usr/bin/xdg-open %s
application/pdf; /usr/bin/xdg-open %s
application/postscript ; /usr/bin/xdg-open %s
text/html; /usr/bin/xdg-open %s ; copiousoutput
----
Not familiar with xdg-open, but I found this:
****
How do I make Firefox my default browser in XDG?
NOTE: you will need to change /PATH_TO_FIREFOX_BIN/ to the path
to your firefox binary.
change xdg to use firefox:
xdg-settings set default-web-browser firefox.desktop
check xdg setting: xdg-settings get default-web-browser.
****
I gave the first command, it was accepted, but the change has no
effect on links in Alpine.
The second command gives the following response:
thomas at morgoth:/etc$ xdg-settings get default-web-browser
/usr/bin/which: no firefox-bin in
(/uio/kant/ifi-snacks/snacks-amd64linuxrh7/encap/firefox-68.0.1+1/opt/firefox)
/usr/bin/which: no firefox in
(/ifi/asgard/snacks-amd64linuxrh6/encap/firefox-42.0+1/opt/firefox)
I don't know why /usr/bin/which was called there, but I'm pretty
sure those two file paths are wrong. What now?
Thomas Gramstad
On Sun, 5 Jan 2025, Mats Dufberg via Alpine-info wrote:
> I just want to note that there could be other files read by the mailcap
> function, such as /etc/mailcap. See "man mailcap".
>
> I have no .mailcap and no url-viewers setting in .pinerc, but alpine will
> open http/https URLs with Chrome for me. /etc/mailcap is non-empty on my
> system.
>
>
> Yours,
> Mats
>
> On 2025-01-05, 13:25 (+0100) Olaf Skibbe via Alpine-info <alpine-info at u.was...:
>
> > Hi Thomas,
> >
> > You do not share too many informations, so it is difficult to point
> > out a possible reason for your problem. But anyways, I can tell you
> > what works for me. I use alpine and Firefox just like you seemingly
> > want it to work. The system is a Linux (Debian stable) with alpine
> > 2.26.
> >
> > A search in my .pinerc shows the following lines containing "url":
> >
> > (Search command: $ grep -i url .pinerc)
> > Result:
> > ==========
> > enable-msg-view-urls,
> > # List of programs to open Internet URLs (e.g. http or ftp references).
> > url-viewers=/usr/bin/firefox
> > ==========
> >
> > I do not know if the .mailcap could interfere with the alpine
> > configuration in regard of the URL viewer, but (for what it's worth) I
> > checked for this. My .mailcap does not contain anything related URLs
> > or http or https.
> >
> > Nevertheless, there are entries containing lynx in /etc/mailcap and
> > lynx is installed.
> >
> > Maybe this helps you finding the problem?
> >
> > Olaf
> >
> >
> > On Sun, 5 Jan 2025 at 02:41, Thomas Gramstad via Alpine-info wrote:
> >
> > > In my Alpine config I have URL-viewer set to /usr/bin/firefox
> > > in order to be able to click a link in an e-mail message and
> > > have it opened in Firefox in an external window.
> > >
> > > This used to work, but now it doesn't.
> > >
> > > What happens now is that I'm asked to accept a cookie, I answer
> > > Y, and then this repeats a few times. Then finally I get the
> > > message that the app will not work unless I install Javascript,
> > > and then nothing more happens.
> > >
> > > I have tried a few times, and also used the ? option while
> > > accepting cookies. According to the ? option, the app asking
> > > for repeated cookie acceptance is Lynx. And yes, it does look
> > > like a vague memory I have a few decades back of the Lynx web
> > > browser.
> > >
> > > So how can I make Firefox work as before, without being asked
> > > about cookies, and without Javascript, and without Lynx?
> > > Is there a way to unlynx Alpine?
> > >
> > > Thomas Gramstad
> > > _______________________________________________
> > > Alpine-info mailing list
> > > Alpine-info at u.washington.edu
> > > http://mailman12.u.washington.edu/mailman/listinfo/alpine-info
> > >
> > _______________________________________________
> > Alpine-info mailing list
> > Alpine-info at u.washington.edu
> > http://mailman12.u.washington.edu/mailman/listinfo/alpine-info
> >
>
> ------------------------------------------------------
> | Mats Dufberg | mats at dufberg.se |
> | Spånga kyrkväg 618 | +46 8 38 48 59 |
> | SE-16362 Spånga, Sweden | +46 70 258 25 88 |
> ------------------------------------------------------
More information about the Alpine-info
mailing list