with the following patch "shutter" -> "Email" works correctly on Ubuntu 14.10 again:
the first change makes sure that only the first occurrence of Exec in thunderbird's desktop file is considered: | head -n 1.
the second change is a fix for what is clearly a bug (having $browser instead of the correct variable $desktop).
with the following patch "shutter" -> "Email" works correctly on Ubuntu 14.10 again:
the first change makes sure that only the first occurrence of Exec in thunderbird's desktop file is considered: | head -n 1.
the second change is a fix for what is clearly a bug (having $browser instead of the correct variable $desktop).
diff -u org/xdg-email fixed/xdg-email
file= "$dir/applicati ons/$desktop" \[[^]=] *])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`" \[[^]=] *])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"
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"
--- org/xdg-email 2014-07-16 11:43:48.000000000 +0200
+++ fixed/xdg-email 2014-12-30 17:44:27.990930489 +0100
@@ -321,7 +321,7 @@
[ -r "$file" ] || continue
# Remove any arguments (%F, %f, %U, %u, etc.).
- command="`grep -E "^Exec(
+ command="`grep -E "^Exec(
readlink -f "$command"
return
@@ -512,7 +512,7 @@
local client
local desktop
desktop=
- client=
+ client=
echo $client | grep thunderbird > /dev/null 2>&1
if [ $? -eq 0 ] ; then