Updated fix for 15.10
--- xdg-email.old 2015-09-16 22:36:49.000000000 +0200 +++ xdg-email.new 2016-01-18 16:38:29.755859228 +0100 @@ -225,7 +225,7 @@ file="$dir/applications/$desktop" [ -r "$file" ] || continue # Remove any arguments (%F, %f, %U, %u, etc.). - command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`" + command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | head -n 1 | cut -d= -f 2- | sed -e 's/ .*$//'`" command="`which "$command"`" readlink -f "$command" return @@ -648,7 +648,7 @@ local client local desktop desktop=`xdg-mime query default "x-scheme-handler/mailto"` - client=`desktop_file_to_binary "$browser"` + client=`desktop_file_to_binary "$desktop"` echo $client | grep thunderbird > /dev/null 2>&1 if [ $? -eq 0 ] ; then run_thunderbird "$client" "$1"
Updated fix for 15.10
--- xdg-email.old 2015-09-16 22:36:49.000000000 +0200
file= "$dir/applicati ons/$desktop" \[[^]=] *])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`" \[[^]=] *])?=" "$file" | head -n 1 | cut -d= -f 2- | sed -e 's/ .*$//'`"
command= "`which "$command"`" `xdg-mime query default "x-scheme- handler/ mailto" ` `desktop_ file_to_ binary "$browser"` `desktop_ file_to_ binary "$desktop"`
run_thunderbi rd "$client" "$1"
+++ xdg-email.new 2016-01-18 16:38:29.755859228 +0100
@@ -225,7 +225,7 @@
[ -r "$file" ] || continue
# Remove any arguments (%F, %f, %U, %u, etc.).
- command="`grep -E "^Exec(
+ command="`grep -E "^Exec(
readlink -f "$command"
return
@@ -648,7 +648,7 @@
local client
local desktop
desktop=
- client=
+ client=
echo $client | grep thunderbird > /dev/null 2>&1
if [ $? -eq 0 ] ; then