Browse Source

[bin] Fix quoting issue in xdg-open

main
Sebastian Schulze 2 months ago
parent
commit
533c23d470
Signed by: bascht GPG Key ID: 5BCB1D3B4D38A35A
  1. 2
      bin/executable_xdg-open

2
bin/executable_xdg-open

@ -8,7 +8,7 @@ url_regex='^(https?|mailto|ftp|file):/?/?.*'
if [[ $argument =~ $url_regex ]]; then
match=$argument
else
match=$(file -b --mime-type $*)
match=$(file -b --mime-type "${*}")
fi;
echo "Searching for ${match} in handlers"

Loading…
Cancel
Save