Package: xdg-utils
Version: 1.1.0~rc1+git20111210-7.4
Severity: important
File: /usr/bin/xdg-email
Tags: patch

I am trying to use xdg-email to send email in Debian stable (jessie).

It completely fails to find Icedove, as it is looking only for
Thunderbird in the applications.

It then falls back to gvfs-open which finds thunderbird, but calls it
improperly which makes it impossible to attach files to it. The
gvfs-open bug is documented in #837771. This is an issue specifically
about xdg-email finding icedove properly.

It seems it's a simple typo in the script that makes it fail to find
the package. The following patch fixes the issue for me:

--- /home/anarcat/dist/xdg-utils-1.1.0~rc1+git20111210/scripts/xdg-email    
2016-09-14 11:42:01.613671932 -0400
+++ /usr/bin/xdg-email  2016-09-14 08:39:02.284971109 -0400
@@ -587,8 +587,8 @@
     local client
     local desktop
     desktop=`xdg-mime query default "x-scheme-handler/mailto"`
-    client=`desktop_file_to_binary "$browser"`
-    echo $client | grep thunderbird > /dev/null 2>&1
+    client=`desktop_file_to_binary "$desktop"`
+    echo $client | egrep 'thunderbird|icedove' > /dev/null 2>&1
     if [ $? -eq 0 ] ; then
         run_thunderbird "$client" "$1"
     fi

With the above patch, xdg-email finds thunderbird and icedove and
succesfully opens a new email compose window with the given
attachment.

It seems to me this would be a great addition to a stable update of
jessie, as without this xdg-email is much less useful.

An alternative would be to update to 1.1.1 instead of running the
"release candidate" version we currently have in stable, but given the
size of the diff, i'm not holding my breath:

 92 files changed, 3829 insertions(+), 13845 deletions(-)

Cheers

A.
-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable'), (1, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

xdg-utils depends on no packages.

Versions of packages xdg-utils recommends:
pn  libfile-mimeinfo-perl  <none>
ii  libnet-dbus-perl       1.0.0-2+b2
ii  libx11-protocol-perl   0.56-6
ii  x11-utils              7.7+2
ii  x11-xserver-utils      7.7+3+b1

Versions of packages xdg-utils suggests:
ii  gvfs-bin  1.22.2-1

-- no debconf information

Reply via email to