0001_better_pcmanfm_check.patch 813 B

12345678910111213141516171819202122232425262728
  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)
  5. ---
  6. ChangeLog | 2 ++
  7. scripts/xdg-open.in | 2 +-
  8. 2 files changed, 3 insertions(+), 1 deletion(-)
  9. diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
  10. index 630e63e..bf9da4c 100644
  11. --- a/scripts/xdg-open.in
  12. +++ b/scripts/xdg-open.in
  13. @@ -451,7 +451,7 @@ open_lxde()
  14. {
  15. # pcmanfm only knows how to handle file:// urls and filepaths, it seems.
  16. - if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
  17. + if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then
  18. local file="$(file_url_to_path "$1")"
  19. # handle relative paths
  20. --
  21. cgit v1.1