Blame SOURCES/0007-xdg-open-Fixes-LXQt-behavior.patch

aca8a1
From 7d4360c64d94de53d907f13ca99837285e972ec6 Mon Sep 17 00:00:00 2001
aca8a1
From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= <luis.artur.pereira@gmail.com>
aca8a1
Date: Wed, 17 May 2017 14:33:30 +0100
aca8a1
Subject: [PATCH 7/8] xdg-open: Fixes LXQt behavior
aca8a1
aca8a1
Commit 6387086e4938d568c2bab185632f60e1619b3f68 introduced LXQt support.
aca8a1
In xdg-open it assumed that LXQt and LXDE are the same. They aren't. LXQt
aca8a1
does not have pcmanfm, it has pcmanfm-qt.
aca8a1
LXQt doesn't want to rely on pcmamfm-qt to handle it: LXQt is very modular
aca8a1
and can be deployed without pcmanfm-qt.
aca8a1
aca8a1
open_generic() works for LXQt but it depends on mimeopen and mimetype. In
aca8a1
the future we will want, for sure, to drop those dependencies. That's the
aca8a1
reason for the existence of open_lxqt().
aca8a1
---
aca8a1
 scripts/xdg-open.in | 11 ++++++++++-
aca8a1
 1 file changed, 10 insertions(+), 1 deletion(-)
aca8a1
aca8a1
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
aca8a1
index 9817c5f..2972257 100644
aca8a1
--- a/scripts/xdg-open.in
aca8a1
+++ b/scripts/xdg-open.in
aca8a1
@@ -447,6 +447,11 @@ open_lxde()
aca8a1
     fi
aca8a1
 }
aca8a1
 
aca8a1
+open_lxqt()
aca8a1
+{
aca8a1
+    open_generic "$1"
aca8a1
+}
aca8a1
+
aca8a1
 [ x"$1" != x"" ] || exit_failure_syntax
aca8a1
 
aca8a1
 url=
aca8a1
@@ -511,10 +516,14 @@ case "$DE" in
aca8a1
     open_xfce "$url"
aca8a1
     ;;
aca8a1
 
aca8a1
-    lxde|lxqt)
aca8a1
+    lxde)
aca8a1
     open_lxde "$url"
aca8a1
     ;;
aca8a1
 
aca8a1
+    lxqt)
aca8a1
+    open_lxqt "$url"
aca8a1
+    ;;
aca8a1
+
aca8a1
     enlightenment)
aca8a1
     open_enlightenment "$url"
aca8a1
     ;;
aca8a1
-- 
aca8a1
2.14.3
aca8a1