Merge pull request #1287 from lawnowner/master

Remove trailing blanks to assure .desktop suffix for xdg-mime.
This commit is contained in:
Arun 2022-01-09 16:15:52 +05:30 committed by GitHub
commit 9c6ce560f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,5 +49,5 @@ app=$(find "$@" -iname '*.desktop' -exec grep '^Name=' {} + \
| cut -f 2)
if [ -n "$app" ]; then
xdg-mime default "$app" "$ftype"
xdg-mime default "${app%%[[:blank:]]*}" "$ftype"
fi