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

Klaumi Klingsporn klaumikli at gmx.de
Thu Sep 13 14:50:38 BST 2018


Package: xdg-utils
Version: 1.1.3-1
Severity: important

Dear Maintainer,

In LXDE xdg-open is not able to open a web- or mail-URL. I only get a message from pcmanfm
that says:

"/home/user/http:/www.debian.org: file or driectory not found."

The reason is a typo in the xdg-openscript in line 978. Instead of:

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

is has to be:

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

and all works fine again in LXDE.

The same in the source-file scripts/xdg-open.in in line 454.

Would be nice if you could fix this in the next release of the package and forward it to 
upstream.

Klaumi


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

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (900, 'testing'), (200, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE:de:en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /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.29-1
ii  libnet-dbus-perl       1.1.0-4+b3
ii  libx11-protocol-perl   0.56-7
ii  x11-utils              7.7+4
ii  x11-xserver-utils      7.7+8

xdg-utils suggests no packages.

-- no debconf information

*** xdg-open_lxde.patch
--- /usr/bin/xdg-open	2018-05-20 00:18:48.000000000 +0200
+++ /home/klaumi/bin/xdg-open	2018-09-13 15:15:51.630704599 +0200
@@ -928,7 +928,7 @@
 {
 
     # pcmanfm only knows how to handle file:// urls and filepaths, it seems.
-    if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
+    if pcmanfm --help >/dev/null 2>$1 -a is_file_url_or_path "$1"; then
         local file="$(file_url_to_path "$1")"
 
         # handle relative paths

*** xdg-open_lxde.patch
--- /usr/bin/xdg-open	2018-05-20 00:18:48.000000000 +0200
+++ /home/klaumi/bin/xdg-open	2018-09-13 15:15:51.630704599 +0200
@@ -928,7 +928,7 @@
 {
 
     # pcmanfm only knows how to handle file:// urls and filepaths, it seems.
-    if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
+    if pcmanfm --help >/dev/null 2>$1 -a is_file_url_or_path "$1"; then
         local file="$(file_url_to_path "$1")"
 
         # handle relative paths



More information about the Pkg-freedesktop-maintainers mailing list