$ diff /usr/bin/xdg-email /usr/bin/xdg-email.ORIG 1c1 < #! /bin/sh --- > #!/bin/sh 320d319 < DEBUG 30 "desktop_to_binary - Searching for ${desktop} in dir ${dir}" 324,327c323,324 < DEBUG 10 "desktop_to_binary - Found desktop file ${file}" < # Remove any arguments (%F, %f, %U, %u, etc.) and ensure only < # one value is returned. < command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | sort -u`" --- > # Remove any arguments (%F, %f, %U, %u, etc.). > command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`" 330c327 < return --- > return 542,558c539,540 < DEBUG 10 "open_xfce - Checking if Thunderbird is installed" < local client < local desktop < desktop_file=`xdg-mime query default "x-scheme-handler/mailto"` < client=`desktop_file_to_binary ${desktop_file}` < DEBUG 20 "open_xfce - Desktop file is ${desktop_file}" < DEBUG 20 "open_xfce - Path to Thunderbird is ${client}" < echo $client | grep thunderbird > /dev/null 2>&1 < if [ $? -eq 0 ] ; then < DEBUG 1 "open_xfce - Running thunderbird" < run_thunderbird "$client" "$1" < # Sub-routine run_thunderbird terminates script on success or failure. < fi < < # We only reach here if Thunderbird is NOT installed. < DEBUG 1 "open_xfce - Running exo-open --launch \"$1\"" < exo-open --launch "$1" --- > DEBUG 1 "Running exo-open \"$1\"" > exo-open "$1" $