#1061292 xdg-utils: cannot set default-web-browser: $BROWSER is set and can't be changed with xdg-settings

#1061292#5
Date:
2024-01-22 10:05:12 UTC
From:
To:
I would like xdg-open to use sensible-browser instead of the default
firefox-esr.desktop. But I get the following error:

qaa:~> xdg-settings set default-web-browser sensible-browser.desktop
xdg-settings: $BROWSER is set and can't be changed with xdg-settings

$BROWSER is the configuration for sensible-browser, so I don't
understand why I get that.

Hmm... the xdg-settings seems to use $BROWSER internally. I don't know
the intent. In any case, $BROWSER is not honored by xdg-open (which
uses firefox-esr.desktop instead of $BROWSER).