Bug#1077829: /usr/bin/xdg-open: Default browser and https handler set to firefox, yet xdg-open invokes chromium

Justus Winter justus at sequoia-pgp.org
Sat Aug 3 04:34:40 BST 2024


Package: xdg-utils
Version: 1.1.3-4.1
Severity: important
File: /usr/bin/xdg-open

Dear Maintainer,

xdg-open prefers Chromium despite it being configured to use Firefox:

teythoon at thinbox ~ % xdg-settings get default-url-scheme-handler https
firefox.desktop
teythoon at thinbox ~ % xdg-settings get default-url-scheme-handler http
firefox.desktop
teythoon at thinbox ~ % xdg-settings get default-web-browser
firefox.desktop
teythoon at thinbox ~ % echo $BROWSER
firefox

Yet:

teythoon at thinbox ~ % sh -x /usr/bin/xdg-open https://debian.org
+ check_common_commands https://debian.org
+ [ 1 -gt 0 ]
+ parm=https://debian.org
+ shift
+ [ 0 -gt 0 ]
+ [ -z  ]
+ unset XDG_UTILS_DEBUG_LEVEL
+ [ 0 -lt 1 ]
+ xdg_redirect_output= > /dev/null 2> /dev/null
+ [ xhttps://debian.org != x ]
+ url=
+ [ 1 -gt 0 ]
+ parm=https://debian.org
+ shift
+ [ -n  ]
+ url=https://debian.org
+ [ 0 -gt 0 ]
+ [ -z https://debian.org ]
+ detectDE
+ unset GREP_OPTIONS
+ [ -n  ]
+ [ x = x ]
+ [ x != x ]
+ [ x != x ]
+ [ x != x ]
+ dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager
+ 
+ xprop -root _DT_SAVE_MODE
+ grep  = \"xfce4\"$
+ xprop -root
+ grep -i ^xfce_desktop_window
+ echo
+ grep -q ^Enlightenment
+ [ x != x ]
+ [ x = x ]
+ [ x = x ]
+ uname
+ [ x = xgnome ]
+ [ -f /run/user/1000/flatpak-info ]
+ [ x = x ]
+ DE=generic
+ DEBUG 2 Selected DE generic
+ [ -z  ]
+ return 0
+ open_generic https://debian.org
+ is_file_url_or_path https://debian.org
+ echo https://debian.org
+ grep -q ^file://
+ echo https://debian.org
+ egrep -q ^[[:alpha:]+\.\-]+:
+ return 1
+ has_display
+ [ -n :0 ]
+ return 0
+ open_generic_xdg_x_scheme_handler https://debian.org
+ echo https://debian.org
+ sed -n s/\(^[[:alnum:]+\.-]*\):.*$/\1/p
+ scheme=https
+ [ -n https ]
+ filetype=x-scheme-handler/https
+ open_generic_xdg_mime https://debian.org x-scheme-handler/https
+ filetype=x-scheme-handler/https
+ xdg-mime query default x-scheme-handler/https
+ default=chromium.desktop
+ [ -n chromium.desktop ]
+ xdg_user_dir=
+ [ -n  ]
+ xdg_user_dir=/home/teythoon/.local/share
+ xdg_system_dirs=
+ [ -n  ]
+ xdg_system_dirs=/usr/local/share/:/usr/share/
+ DEBUG 3 /home/teythoon/.local/share:/usr/local/share/:/usr/share/
+ [ -z  ]
+ return 0
+ echo /home/teythoon/.local/share:/usr/local/share/:/usr/share/
+ sed s/:/ /g
+ search_desktop_file chromium.desktop /home/teythoon/.local/share/applications/ https://debian.org
+ local default=chromium.desktop
+ local dir=/home/teythoon/.local/share/applications/
+ local target=https://debian.org
+ local file=
+ [ -r /home/teythoon/.local/share/applications//chromium.desktop ]
+ echo chromium.desktop
+ sed -e s|-|/|
+ [ -r /home/teythoon/.local/share/applications//chromium.desktop ]
+ [ -r  ]
+ [ -d /home/teythoon/.local/share/applications//*/ ]
+ search_desktop_file chromium.desktop /usr/local/share//applications/ https://debian.org
+ local default=chromium.desktop
+ local dir=/usr/local/share//applications/
+ local target=https://debian.org
+ local file=
+ [ -r /usr/local/share//applications//chromium.desktop ]
+ echo chromium.desktop
+ sed -e s|-|/|
+ [ -r /usr/local/share//applications//chromium.desktop ]
+ [ -r  ]
+ [ -d /usr/local/share//applications//*/ ]
+ search_desktop_file chromium.desktop /usr/share//applications/ https://debian.org
+ local default=chromium.desktop
+ local dir=/usr/share//applications/
+ local target=https://debian.org
+ local file=
+ [ -r /usr/share//applications//chromium.desktop ]
+ file=/usr/share//applications//chromium.desktop
+ [ -r /usr/share//applications//chromium.desktop ]
+ get_key /usr/share//applications//chromium.desktop Exec
+ local file=/usr/share//applications//chromium.desktop
+ local key=Exec
+ local desktop_entry=
+ IFS_= 	

+ IFS=
+ read line
+ desktop_entry=y
+ read line
+ read line
+ read line
+ + read line
+ read line
first_word
+ + readread line
 first rest
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ [ -n y ]
+ echo Exec=/usr/bin/chromium %U
+ cut -d= -f 2-
+ + read line
echo /usr/bin/chromium
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ IFS= 	

+ command=/usr/bin/chromium
+ which /usr/bin/chromium
+ command_exec=/usr/bin/chromium
+ get_key /usr/share//applications//chromium.desktop Icon
+ local file=/usr/share//applications//chromium.desktop
+ local key=Icon
+ local desktop_entry=
+ IFS_= 	

+ IFS=
+ read line
+ desktop_entry=y
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ [ -n y ]
+ echo Icon=chromium
+ cut -d= -f 2-
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ IFS= 	

+ icon=chromium
+ get_key /usr/share//applications//chromium.desktop Name
+ local file=/usr/share//applications//chromium.desktop
+ local key=Name
+ local desktop_entry=
+ IFS_= 	

+ IFS=
+ read line
+ desktop_entry=y
+ read line
+ read line
+ [ -n y ]
+ echo Name=Chromium Web Browser
+ cut -d= -f 2-
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ IFS= 	

+ localised_name=Chromium Web Browser
+ get_key /usr/share//applications//chromium.desktop Exec
+ local file=/usr/share//applications//chromium.desktop
+ local key=Exec
+ + local desktop_entry=
+ IFS_= 	

+ IFS=
last_word
+ read first rest
+ read line
+ desktop_entry=y
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ [ -n y ]
+ echo Exec=/usr/bin/chromium %U
+ cut -d= -f 2-
+ echo %U
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ IFS= 	

+ set -- %U
+ local args=1
+ local replaced=0
+ [ 1 -gt 0 ]
+ replaced=1
+ arg=https://debian.org
+ shift
+ set -- https://debian.org
+ args=0
+ [ 0 -gt 0 ]
+ [ 1 -eq 1 ]
+ local term_run=
+ get_key /usr/share//applications//chromium.desktop Terminal
+ local file=/usr/share//applications//chromium.desktop
+ local key=Terminal
+ local desktop_entry=
+ IFS_= 	

+ IFS=
+ read line
+ desktop_entry=y
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ [ -n y ]
+ echo Terminal=false
+ cut -d= -f 2-
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ read line
+ IFS= 	

+ [ false = true ]
+ /usr/bin/chromium https://debian.org
Opening in existing browser session.
+ [ 0 -eq 0 ]
+ exit_success
+ [ 0 -gt 0 ]
+ exit 0

-- Package-specific info:
Desktop environment: XDG_CURRENT_DESKTOP=

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.9.10-arm64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

xdg-utils depends on no packages.

Versions of packages xdg-utils recommends:
ii  libfile-mimeinfo-perl  0.35-1
ii  libnet-dbus-perl       1.2.0-2+b2
ii  libx11-protocol-perl   0.56-9
ii  x11-utils              7.7+6+b1
ii  x11-xserver-utils      7.7+10+b1

xdg-utils suggests no packages.

-- no debconf information



More information about the Pkg-freedesktop-maintainers mailing list