Hi,
i have the same problem with raring.
for me there seem to be at least 2 errors in the script:
in open_gnome the wrong variable is used to find the desktop file (browser
instead of desktop)
and in desktop_file_to_binary() the grep command finds multiple occurences of
'Exec'. The supposed patch below only takes the first one and removes all
following lines.
hence i suppose the following changes, that seem to work for me:
@@ -319,11 +319,11 @@
unset IFS
[ "$dir" -a -d "$dir/applications" ] || continue
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" | cut -s -d= -f 2- |
sed -e 's/ .*$//;2,$d'`"
command="`which "$command"`"
readlink -f "$command"
return
done
}
@@ -510,11 +510,11 @@
open_gnome()
{
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"
fi
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-utils in Ubuntu.
https://bugs.launchpad.net/bugs/515386
Title:
No attachment when Thunderbird is set as default client.
Status in Simple Scan:
Invalid
Status in Mozilla Thunderbird Mail and News:
Invalid
Status in Xdg-utils:
Fix Released
Status in “thunderbird” package in Ubuntu:
Triaged
Status in “xdg-utils” package in Ubuntu:
Fix Released
Bug description:
Currently, when thunderbird is set as the default email client, when
simple-scan tries to open a new message using mailto: , a new message
window is opened for thunderbird, but there are no attachment.
This is probably due to Thunderbird who does not support attachment
with mailto because it is considered unsecure, but still, this makes
user experience very poor, as the user is left thinking "ok a new
window opened, therefore the attachment must be somewhere..". And
thunderbird is pretty popular.
Fortunately this might be easy to "workaround". Picasa already did it
using xdg-email script that I attached since its code show exactly
what's needed. the run_thunderbird() function is the more important
part in the file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/515386/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp