Package: apt-listbugs Version: 0.1.24 Severity: normal Dear Maintainer,
When inspecting a bug presented by apt-listbugs (e.g. 'b1'), one of the possible actions is to type 'b' to open the list of bugs in the browser. When I attempt to do this it fails with an error message about xdg-open not being able to find a browser (reproduced below). It's not the fault of apt-listbugs that the 'b' function is broken; that's down to the fact that xdg-utils is not configured for the root user, and its hard-coded list of fallback browsers is missing /usr/bin/firefox. However I wonder how much sense it makes to be running xdg-open as the root user in the first place. It seems like all of the possible external actions in this menu (launching email client or web browser) are things you would expect to do as a normal user and probably wouldn't have configured for the root user. Is there any way that apt-listbugs could drop down to a normal user for the context of this menu and xdg-utils? -- Relevant output: What do you want to do now? [p|x|O|r|b|e|q|?]? ? p - Show previous message (followup). x - Provide extra information. O - (default) Show other bug reports (return to bug listing). r - Redisplay this message. b - Launch web browser to read full log. e - Launch e-mail client to read full log. q - I'm bored; quit please. ? - Display this help. What do you want to do now? [p|x|O|r|b|e|q|?]? b No protocol specified Unable to init server: Could not connect: Connection refused Error: cannot open display: :0 [28965:28965:1003/102348.181557:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. No protocol specified Unable to init server: Could not connect: Connection refused Error: cannot open display: :0 /usr/bin/xdg-open: 870: /usr/bin/xdg-open: iceweasel: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: seamonkey: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: mozilla: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: epiphany: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: konqueror: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: chromium: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: chromium-browser: not found [28995:28995:1003/102348.230314:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. /usr/bin/xdg-open: 870: /usr/bin/xdg-open: www-browser: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: links2: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: elinks: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: links: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: lynx: not found /usr/bin/xdg-open: 870: /usr/bin/xdg-open: w3m: not found xdg-open: no method available for opening 'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909770&archived=False&mbox=no' What do you want to do now? [p|x|O|r|b|e|q|?]? -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apt-listbugs depends on: ii apt 1.7.0~rc2 ii ruby 1:2.5.1 ii ruby-debian 0.3.9+b8 ii ruby-gettext 3.2.9-1 ii ruby-soap4r 2.0.5-4 ii ruby-unicode 0.4.4-2+b9 ii ruby-xmlparser 0.7.3-3+b2 Versions of packages apt-listbugs recommends: ii ruby-httpclient 2.8.3-1 Versions of packages apt-listbugs suggests: ii firefox [www-browser] 62.0.2-1 ii google-chrome-stable [www-browser] 69.0.3497.100-1 ii reportbug 7.5.0 ii sensible-utils 0.0.12 -- no debconf information