[Alpine-info] How to unlynx links in Alpine?
Andrew C Aitchison via Alpine-info
alpine-info at u.washington.edu
Sun Jan 5 15:32:39 PST 2025
On Sun, 5 Jan 2025, Thomas Gramstad via Alpine-info wrote:
>
> 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,
I am note sure what is inside default-web-browser
but it will be using which because firefox and firefox-bin are not full paths.
> but I'm pretty sure those two file paths are wrong. What now?
This is no longer really an alpine issue but
you appear to be heading in the right direction.
I'd look up xdg-settings and default-web-browser
for your particular flavour of linux.
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the Alpine-info
mailing list