[Bug 515386] Re: No attachment when Thunderbird is set as default client.
Thomas E. Horner
515386 at bugs.launchpad.net
Wed Jul 15 13:40:10 UTC 2015
with the following patch "simple-scan" -> "Email" works correctly on
Ubuntu 15.04 again:
diff -u org/xdg-email fixed/xdg-email
--- org/xdg-email 2015-01-26 09:14:22.000000000 +0100
+++ fixed/xdg-email 2015-07-15 15:33:30.353509685 +0200
@@ -321,7 +321,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
@@ -512,7 +512,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"
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).
it's a little sad to see nothing happen here as this is a pain for a lot of users and quite easy to fix.
--
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/515386
Title:
No attachment when Thunderbird is set as default client.
To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/515386/+subscriptions
More information about the Ubuntu-mozillateam-bugs
mailing list