mirror of
https://github.com/jarun/nnn.git
synced 2024-09-11 04:55:25 +03:00
Remove trailing blanks to assure .desktop suffix for xdg-mime.
This commit is contained in:
parent
2eadf35fa0
commit
49aa4dabf1
@ -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 New Issue
Block a user