--- a/scripts/xdg-utils-common.in +++ b/scripts/xdg-utils-common.in @@ -62,10 +62,10 @@ if [ "${desktop#*-}" != "$desktop" ]; then vendor=${desktop%-*} app=${desktop#*-} - if [ -r $dir/applications/$vendor/$app ]; then - file_path=$dir/applications/$vendor/$app - elif [ -r $dir/applnk/$vendor/$app ]; then - file_path=$dir/applnk/$vendor/$app + if [ -r "$dir/applications/$vendor/$app" ]; then + file_path="$dir/applications/$vendor/$app" + elif [ -r "$dir/applnk/$vendor/$app" ]; then + file_path="$dir/applnk/$vendor/$app" fi fi if test -z "$file_path" ; then