Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vendor/xdg-open
Original file line number Diff line number Diff line change
Expand Up @@ -555,15 +555,15 @@ search_desktop_file()
command_exec=`which $command 2>/dev/null`
arguments="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | last_word`"
arg_one="`echo $arg | sed 's/&/\\\\&/g'`"
arguments_exec="`echo $arguments | sed -e 's*%[fFuU]*"'"$arg_one"'"*g'`"
arguments_exec="`echo $arguments | sed -e 's*%[fFuU]*'"$arg_one"'*g'`"

if [ -x "$command_exec" ] ; then
if echo $arguments | grep -iq '%[fFuU]' ; then
echo START $command_exec $arguments_exec
eval $command_exec $arguments_exec
eval '$command_exec "$arguments_exec"'
else
echo START $command_exec $arguments_exec "$arg"
eval $command_exec $arguments_exec "$arg"
eval '$command_exec "$arguments_exec" "$arg"'
fi

if [ $? -eq 0 ]; then
Expand Down Expand Up @@ -656,7 +656,7 @@ open_generic()
fi

if [ x"$browser_with_arg" = x"$browser" ]; then
eval '$browser $1'$xdg_redirect_output;
eval '$browser "$1"'$xdg_redirect_output;
else eval '$browser_with_arg'$xdg_redirect_output;
fi

Expand Down