Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xdg
xdg-utils
Commits
9816ebb3
Unverified
Commit
9816ebb3
authored
Feb 20, 2020
by
Andrea Tarocchi
Browse files
fixed #166: xdg-open dose not search correctly in directories with spaces in the name
parent
0547886c
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/xdg-mime.in
View file @
9816ebb3
...
...
@@ -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
}
...
...
scripts/xdg-open.in
View file @
9816ebb3
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment