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

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