xdg-email fails to add attachment with Thunderbird
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| xdg-utils (Ubuntu) |
Undecided
|
Unassigned | |||
Bug Description
Attachment is not added even though I can attach files from command-line using the following command thunderbird -remote "xfeDoCommand(
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xdg-utils 1.1.0~rc1-
ProcVersionSign
Uname: Linux 3.13.0-40-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Dec 11 10:24:08 2014
InstallationDate: Installed on 2014-09-18 (83 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitec
SourcePackage: xdg-utils
UpgradeStatus: No upgrade log present (probably fresh install)
| Jody (douglas41) wrote : | #1 |
| Jody (douglas41) wrote : | #3 |
This is what I get when I run:
jody@ubuntu:~$ XDG_UTILS_
DE is "gnome"
grep: /home/jody/
Running gvfs-open "mailto:
| Paq (paq1) wrote : | #4 |
This is also an issue with Ubuntu 12.04. It is also likely a duplicate of a few other bugs:
https:/
https:/
The problem appears to be with a few bugs in /usr/bin/xdg-email:
#1: The function desktop_
Exec=thunderbird %u
Exec=thunderbird -compose
Exec=thunderbird -addressbook
The grep command finds all of them, and the subsequent call to "which" to find the executable looks for a program called "thunderbird thunderbird thunderbird". This can be fixed by adding a "-m 1" flag to the grep command to stop at the first instance.
#2: In the function open_gnome(), it calls desktop_
Both of these observations were pointed out previously in:
https:/
After making these two changes, xdg-email correctly calls
/usr/
instead of
gvfs-open "mailto:
The problem has nothing to do with thunderbird's inability to handle mailto: attachments.


Status changed to 'Confirmed' because the bug affects multiple users.