I will say, though, that there are many examples across various Linucies 
(that's the plural, right? ☺) suggesting to use the BROWSER variable to change 
the default browser. Case in point:
https://wiki.archlinux.org/index.php/Environment_Variables#Default_programs

And I might add another point: it's obvious that chromium-browser uses
`xdg-settings` but I'm not sure what firefox uses, but the end result is
that the `xdg-settings`, `xdg-mime` and `$BROWSER` values are all set
appropriately. I will note, too, that `xdg-settings` results in a
proportional change to `xdg-mime`.

I do think that setting BROWSER is problematic and it is contributing to
the problem, but the fact that chromium-browser seems to be unique among
other browsers in terms of lacking robustness to set itself as default
regardless of circumstances. Therefore, I think the fault lies with it.

** Changed in: chromium-browser (Ubuntu)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1823917

Title:
  Can't set Chromium as the default browser when BROWSER variable is
  defined

Status in chromium-browser package in Ubuntu:
  Triaged

Bug description:
  STEPS TO REPRODUCE
   1. Install firefox
   2. Set `BROWSER=firefox`
   3. Open firefox and make sure it is the default browser
   4. Install chromium-browser
   5. Open chromium-browser and set it as the default browser
   6. Click on a link or use `xdg-open URL`

  EXPECTED RESULTS
  Link opens in chromium-browser

  ACTUAL RESULTS
  Link opens in firefox instead. Running chromium-browser from the terminal, 
when trying to change the default browser, the error "xdg-settings: $BROWSER is 
set and can't be changed with xdg-settings" appears. BROWSER, xdg-setting's 
default-web-browser, and xdg-mime's default for text/html remain unchanged. 
It's not possible to set the value of default-web-browser when the BROWSER 
variable is set. Yet, when making firefox default, the end result is that 
BROWSER is still set and default-web-browser and the default for text/html has 
changed.

  AFFECTED VERSIONS
  chromium-browser 73.0.3683.103-0ubuntu1

  UPSTREAM BUG REPORT
  https://bugs.chromium.org/p/chromium/issues/detail?id=952569

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1823917/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to