Skip to content

Commit

Permalink
Integrate upstream PR march-linux#4, which
Browse files Browse the repository at this point in the history
adds support for executables with arguments
  • Loading branch information
BachoSeven committed Jun 22, 2020
1 parent 4b1d379 commit 6b254cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xdg-open
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ if [[ "$arg" =~ ^([a-zA-Z-]+): ]]; then
protocol="^$protocol"
fi

# executable with arguments
[[ ! "$mime" ]] && [[ -x "$1" ]] && mime="$(file -b --mime-type "$1")"

# application mime is specific
[[ "$mime" =~ ^(audio|image|text|video)/ ]] && general_mime="${BASH_REMATCH[1]}/"

Expand Down Expand Up @@ -151,7 +154,7 @@ done

# use linopen as a fallback just in case
if exist linopen; then
fork_run "linopen" "$arg"
"linopen" "$arg"
fi

# ask
Expand Down

0 comments on commit 6b254cb

Please sign in to comment.