diff options
author | Luís Pereira <luis.artur.pereira@gmail.com> | 2017-05-17 14:33:30 +0100 |
---|---|---|
committer | Rex Dieter <rdieter@gmail.com> | 2018-02-27 15:56:50 -0600 |
commit | 7d4360c64d94de53d907f13ca99837285e972ec6 (patch) | |
tree | 66979f09f8eb5802b98d555c48b6f1ab7c2ca39d | |
parent | eda08ef065adac7cfa46f296d378cc06a3131d3e (diff) |
xdg-open: Fixes LXQt behavior
Commit 6387086e4938d568c2bab185632f60e1619b3f68 introduced LXQt support.
In xdg-open it assumed that LXQt and LXDE are the same. They aren't. LXQt
does not have pcmanfm, it has pcmanfm-qt.
LXQt doesn't want to rely on pcmamfm-qt to handle it: LXQt is very modular
and can be deployed without pcmanfm-qt.
open_generic() works for LXQt but it depends on mimeopen and mimetype. In
the future we will want, for sure, to drop those dependencies. That's the
reason for the existence of open_lxqt().
-rw-r--r-- | scripts/xdg-open.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in index 9817c5f..2972257 100644 --- a/scripts/xdg-open.in +++ b/scripts/xdg-open.in @@ -447,6 +447,11 @@ open_lxde() fi } +open_lxqt() +{ + open_generic "$1" +} + [ x"$1" != x"" ] || exit_failure_syntax url= @@ -511,10 +516,14 @@ case "$DE" in open_xfce "$url" ;; - lxde|lxqt) + lxde) open_lxde "$url" ;; + lxqt) + open_lxqt "$url" + ;; + enlightenment) open_enlightenment "$url" ;; |