We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I have a file with -h as the name it won't open. The below patch fixes this problem.
-h
diff --git a/xdg-open b/xdg-open index a30b3ec..2a318df 100755 --- a/xdg-open +++ b/xdg-open @@ -73,7 +73,7 @@ fi if [[ -e "$arg" ]]; then # file or dir - mime="$(file -ib "$arg" | cut -d';' -f1)" + mime="$(file -ib -- "$arg" | cut -d';' -f1)" if [[ -f "$arg" ]]; then ext="$(tr '[:upper:]' '[:lower:]' <<< "${arg##*.}")" fi
The text was updated successfully, but these errors were encountered:
Fix issue march-linux#11 from original
191f0e2
upstream
No branches or pull requests
If I have a file with
-h
as the name it won't open. The below patch fixes this problem.The text was updated successfully, but these errors were encountered: