mirror of
https://github.com/jarun/nnn.git
synced 2024-11-18 00:49:15 +00:00
Merge pull request #1287 from lawnowner/master
Remove trailing blanks to assure .desktop suffix for xdg-mime.
This commit is contained in:
commit
9c6ce560f1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue