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

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