nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 49aa4dabf1ab8b01d346c52fb5cb58a10c9a49fd
parent 2eadf35fa0278cf007323e02dab70f1fd8552df9
Author: lwnctd <astrodoe@yandex.com>
Date:   Sat,  8 Jan 2022 05:34:20 +0300

Remove trailing blanks to assure .desktop suffix for xdg-mime.

Diffstat:
Mplugins/xdgdefault | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/xdgdefault b/plugins/xdgdefault @@ -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