Package: xdg-utils
Version: 1.1.0~rc3+git20150907-2
Severity: normal

Using xdg-utils_1.0.2+cvs20100307-2, I get:

  $ BROWSER='echo my-browser' xdg-open http://example.com
  my-browser http://example.com

which 1.1.0~rc3, it opens chromium (the use of echo is just to
illustrate; the same problem happens if I point BROWSER to a real
browser).

I'm not using a desktop environment, so we end up in the open_generic()
function. The old version would fall back to sensible-browser in that
case. But the new version first calls open_generic_xdg_x_scheme_handler,
which looks for .desktop files before falling back.

I recognize that this is probably desired behavior for some people, but
it's a regression for others. I can't find a way to enable the old
behavior. I'd suggest that setting $BROWSER should probably take
precedence over the .desktop search, as it indicates a clearly-set
preference for the user.  I'm happy to work up a patch if there is
agreement.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

xdg-utils depends on no packages.

Versions of packages xdg-utils recommends:
pn  libfile-mimeinfo-perl  <none>
ii  libnet-dbus-perl       1.1.0-3
pn  libx11-protocol-perl   <none>
ii  x11-utils              7.7+3
ii  x11-xserver-utils      7.7+5

Versions of packages xdg-utils suggests:
pn  gvfs-bin  <none>

-- no debconf information

Reply via email to