--- xdg-open.in 2014-02-07 09:17:03.000000000 -0500 +++ xdg-open.in_nameAndIcon_v2.patch 2015-03-09 21:18:51.956994296 -0400 @@ -149,6 +149,15 @@ arg_one="`echo "$arg" | sed 's/[&*\\]/\\\\&/g'`" arguments_exec="`echo "$arguments" | sed -e 's*%[fFuU]*"'"$arg_one"'"*g'`" + name=`grep '^Name=' "$file" | cut -d= -f 2-` + if [ $? -eq 0 ] ; then + arguments_exec=`echo "$arguments_exec" | sed -e "s/ %c\([[:blank:]]\|$\)/ \"${name}\"\1/g"` + fi + icon=`grep 'Icon=' "$file" | cut -d= -f 2-` + if [ $? -eq 0 ] ; then + arguments_exec=`echo "$arguments_exec" | sed -e "s/ %i\([[:blank:]]\|$\)/ --icon \"${icon}\"\1/g"` + fi + if [ -x "$command_exec" ] ; then if echo "$arguments" | grep -iq '%[fFuU]' ; then echo START "$command_exec" "$arguments_exec"