using BROWSER environment variable to set default browser creates several problems

Bug #1824654 reported by Walter Lapchynski on 2019-04-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxqt-session (Ubuntu)

Bug Description

LXQt's mechanism to change the default web browser is broken. They should be using `xdg-settings set default-web-browser` instead of setting `$BROWSER`.

See here for example test cases:

The upstream GitHub issue is linked.

Also Lubuntu is tracking this here:

 1. Chromium to change to default browser (
 2. File associations and scheme handler settings to follow the default browser setting
 3. Browsers with no in-application mechanism to change the default browser to become the default browser (though this requires 1 below to be fixed)

Other problems with the current system:
 1. The list of browsers is not complete
 2. You can search for a browser and enter the executable, but it's never added to the list and disappears when something else is selected
 3. If `$BROWSER` is set in /etc/xdg/xdg-Lubuntu/lxqt/session.conf, the environment variable can't be deleted by the UI

 1. Remove `$BROWSER` from the /etc/xdg/xdg-Lubuntu/lxqt/session.conf
 2. Remove `$BROWSER` from the $HOME/.config/lxqt/session.conf
 3. Get rid of the environment variable with `unset BROWSER`
 4. Follow these rules for switching browsers:
    * Do NOT use `$BROWSER`, which can be set as a "Default Application" or an "Environment Variable" in `lxqt-config-session` ("Session Settings")
    * To switch between chromium, firefox, or opera as default browsers, you can use the in-application mechanism
    * For browsers without an in-application mechanism:
      1. Find the desktop file in /usr/share/applications associated with the browser, e.g. chromium-browser.desktop
      2. Run `xdg-settings set default-web-browser browser.desktop`

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: lxqt-session 0.14.1-0ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-11.12-generic 5.0.6
Uname: Linux 5.0.0-11-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CasperVersion: 1.403
CurrentDesktop: LXQt
Date: Sat Apr 13 13:21:58 2019
LiveMediaBuild: Lubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190413.1)
SourcePackage: lxqt-session
UpgradeStatus: No upgrade log present (probably fresh install)

Walter Lapchynski (wxl) wrote :
Changed in lxqt-session (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in lxqt:
status: Unknown → New
Walter Lapchynski (wxl) on 2019-05-07
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.