diff --git a/srcpkgs/xdg-utils/patches/9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197.patch b/srcpkgs/xdg-utils/patches/9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197.patch new file mode 100644 index 00000000000..08c25637894 --- /dev/null +++ b/srcpkgs/xdg-utils/patches/9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197.patch @@ -0,0 +1,40 @@ +From 9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197 Mon Sep 17 00:00:00 2001 +From: Andrea Tarocchi +Date: Thu, 20 Feb 2020 22:01:04 +0100 +Subject: [PATCH] fixed #166: xdg-open dose not search correctly in directories + with spaces in the name + +--- + scripts/xdg-mime.in | 2 +- + scripts/xdg-open.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in +index 034d0ef..612d2ce 100644 +--- a/scripts/xdg-mime.in ++++ b/scripts/xdg-mime.in +@@ -307,7 +307,7 @@ search_desktop_file() + + grep -l "$MIME;" "$dir/"*.desktop 2>/dev/null + +- for f in $dir/*/; do ++ for f in "$dir/"*/; do + [ -d "$f" ] && search_desktop_file "$MIME" "$f" + done + } +diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in +index 202f3e3..8de839a 100644 +--- a/scripts/xdg-open.in ++++ b/scripts/xdg-open.in +@@ -328,7 +328,7 @@ search_desktop_file() + fi + fi + +- for d in $dir/*/; do ++ for d in "$dir/"*/; do + [ -d "$d" ] && search_desktop_file "$default" "$d" "$target" + done + } +-- +GitLab + diff --git a/srcpkgs/xdg-utils/template b/srcpkgs/xdg-utils/template index b2c323f8c31..5969b6c4945 100644 --- a/srcpkgs/xdg-utils/template +++ b/srcpkgs/xdg-utils/template @@ -1,7 +1,7 @@ # Template file for 'xdg-utils' pkgname=xdg-utils version=1.1.3 -revision=4 +revision=5 build_style=gnu-configure make_check_target=test hostmakedepends="xmlto lynx"