Bug#908760: xdg-utils: xdg-open doesn't work in LXDE on URLs

Prof. Dipl.-Ing. Klaus Knopper knopper at knopper.net
Tue Feb 5 18:57:43 GMT 2019


Package: xdg-utils
Version: 1.1.3-1
Followup-For: Bug #908760

Dear Maintainer,

Line 931 of /usr/bin/xdg-open reading

if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then

should be

if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then

instead, since -a only works inside [ ... ] or test ... environment.

The current syntax falsely evaluates the expression as "true", resulting
in the fact that URLs like http://debian.org are being replaced by an
invalid local path /home/username/http://debian.org.

Regards
-Klaus Knopper

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

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

Kernel: Linux 4.20.3-64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
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-5+b1
pn  libx11-protocol-perl   <none>
ii  x11-utils              7.7+4
ii  x11-xserver-utils      7.7+8

xdg-utils suggests no packages.

-- debconf-show failed



More information about the Pkg-freedesktop-maintainers mailing list