--- xdg-open 2010-03-03 10:34:44.000000000 +0000 +++ xdg-open.new 2010-05-01 02:06:20.000000000 +0100 @@ -395,7 +395,7 @@ command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word`" command_exec=`which $command 2>/dev/null` if [ -x "$command_exec" ] ; then - $command_exec $1 + $command_exec "$1" if [ $? -eq 0 ]; then exit_success fi @@ -411,6 +411,7 @@ if (echo "$1" | grep -q '^file://' || ! echo "$1" | egrep -q '^[a-zA-Z+\.\-]+:'); then + local file="$1" # Decode URLs @@ -420,7 +421,7 @@ fi check_input_file "$file" - + open_generic_xdg_mime "$file" if [ -f /etc/debian_version ] &&