diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-07-18 13:35:15 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-07-18 13:35:15 +0000 |
commit | def11e34d75ea14e4f9f44d75e6da19eba47a7a4 (patch) | |
tree | 96b73eec8dd71cf7fbef522814568db91a14e645 /user/xdg-utils/xdg-open-spaces.patch | |
parent | 33fce3ea5990bf07c9fda44f136d7810a1883445 (diff) | |
download | packages-def11e34d75ea14e4f9f44d75e6da19eba47a7a4.tar.gz packages-def11e34d75ea14e4f9f44d75e6da19eba47a7a4.tar.bz2 packages-def11e34d75ea14e4f9f44d75e6da19eba47a7a4.tar.xz packages-def11e34d75ea14e4f9f44d75e6da19eba47a7a4.zip |
user/xdg-utils: fix many papercuts via fd.o MRs
Diffstat (limited to 'user/xdg-utils/xdg-open-spaces.patch')
-rw-r--r-- | user/xdg-utils/xdg-open-spaces.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/user/xdg-utils/xdg-open-spaces.patch b/user/xdg-utils/xdg-open-spaces.patch new file mode 100644 index 000000000..7583a9dc3 --- /dev/null +++ b/user/xdg-utils/xdg-open-spaces.patch @@ -0,0 +1,38 @@ +From cc686869e9801b09abc29a3e72718ae0520aa97e Mon Sep 17 00:00:00 2001 +From: Dominik Schmidt <dominik@schm1dt.ch> +Date: Sat, 8 Dec 2018 19:56:44 +0100 +Subject: [PATCH] xdg-open: Fix unquoted variable expansion when looking for + .desktop files + +The recursive find algorithm for the .desktop files has an unquoted path expansion +in the generic case, when no desktop environment specific tool is found. +Hence, if we have a directory layout containing something along the lines of + + ~/.local/share/applications/foo bar/ + +Then the recursion will expand into searching in: + + * `~/.local/share/applications/foo` + * `~/bar/*` + +instead of `~/.local/share/applications/foo bar/*` +--- + scripts/xdg-open.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in +index 202f3e3..b3e0ba9 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 + } +-- +2.21.0 + |