[Bug 1401632] Re: xdg-email fails to add attachment with Thunderbird
*** This bug is a duplicate of bug 1540399 *** https://bugs.launchpad.net/bugs/1540399 ** This bug is no longer a duplicate of bug 515386 No attachment when Thunderbird is set as default client. ** This bug has been marked a duplicate of bug 1540399 Simple Scan do not attach files in Thunderbird -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1401632 Title: xdg-email fails to add attachment with Thunderbird To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1401632/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1401632] Re: xdg-email fails to add attachment with Thunderbird
*** This bug is a duplicate of bug 515386 *** https://bugs.launchpad.net/bugs/515386 ** This bug has been marked a duplicate of bug 515386 No attachment when Thunderbird is set as default client. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1401632 Title: xdg-email fails to add attachment with Thunderbird To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1401632/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1401632] Re: xdg-email fails to add attachment with Thunderbird
This is also an issue with Ubuntu 12.04. It is also likely a duplicate of a few other bugs: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1277884 https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/515386 The problem appears to be with a few bugs in /usr/bin/xdg-email: #1: The function desktop_file_to_binary() runs a grep command which attempts to extract the name of the email executable from ~/.local/share/applications/thunderbird.desktop by finding a line in it which begins Exec=thunderbird args. Unfotunately, there are several of these matching lines in the thunderbird.desktop file: 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_file_to_binary() with the argument $browser when it should use the argument $desktop. (The function open_lxde() calls desktop_file_to_binary() correctly with $desktop.) Both of these observations were pointed out previously in: https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/515386/comments/44 After making these two changes, xdg-email correctly calls /usr/lib/thunderbird/thunderbird.sh -compose attachment='filename' instead of gvfs-open mailto:?attach=filename The problem has nothing to do with thunderbird's inability to handle mailto: attachments. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1401632 Title: xdg-email fails to add attachment with Thunderbird To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1401632/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1401632] Re: xdg-email fails to add attachment with Thunderbird
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xdg-utils (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1401632 Title: xdg-email fails to add attachment with Thunderbird To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1401632/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1401632] Re: xdg-email fails to add attachment with Thunderbird
This is what I get when I run: jody@ubuntu:~$ XDG_UTILS_DEBUG_LEVEL=100 xdg-email --attach ~/Desktop/keys.txt DE is gnome grep: /home/jody/.local/share/applications/: Is a directory Running gvfs-open mailto:?attach=/home/jody/Desktop/keys.txt; -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1401632 Title: xdg-email fails to add attachment with Thunderbird To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1401632/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs