diff options
author | Andrea Tarocchi <andrea.tarocchi@gmail.com> | 2020-02-20 22:01:04 +0100 |
---|---|---|
committer | Andrea Tarocchi <andrea.tarocchi@gmail.com> | 2020-02-20 22:01:04 +0100 |
commit | 9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197 (patch) | |
tree | 8c3570ffe16a9ad273cf6e50f3cb547745d7768d | |
parent | 0547886c0a7ae79145998495a6e3af6a1450d0c7 (diff) |
fixed #166: xdg-open dose not search correctly in directories with spaces in the name
-rw-r--r-- | scripts/xdg-mime.in | 2 | ||||
-rw-r--r-- | 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 } |