archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xdg-utils / repos / extra-any / 0001_better_pcmanfm_check.patch
blob573ad89fb6ca9aa730daf6945dfc30bcc9af4d3f
1 From 31525d3855f876ddf2e29091b2e8d376f923e09e Mon Sep 17 00:00:00 2001
2 From: Rex Dieter <rdieter@gmail.com>
3 Date: Thu, 24 May 2018 14:40:53 -0500
4 Subject: xdg-open: better pcmanfm check (BR106636,BR106161)
6 ---
7 ChangeLog | 2 ++
8 scripts/xdg-open.in | 2 +-
9 2 files changed, 3 insertions(+), 1 deletion(-)
11 diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
12 index 630e63e..bf9da4c 100644
13 --- a/scripts/xdg-open.in
14 +++ b/scripts/xdg-open.in
15 @@ -451,7 +451,7 @@ open_lxde()
18 # pcmanfm only knows how to handle file:// urls and filepaths, it seems.
19 - if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
20 + if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then
21 local file="$(file_url_to_path "$1")"
23 # handle relative paths
24 --
25 cgit v1.1