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@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
                   and...@aitchison.me.uk
_______________________________________________
Alpine-info mailing list
Alpine-info@u.washington.edu
http://mailman12.u.washington.edu/mailman/listinfo/alpine-info

Reply via email to