Package: xdg-utils
Version: 1.1.1-1
Severity: normal
Tags: patch
File: /usr/bin/xdg-email
Control: affects 855334 xdg-utils
Control: block -1 by 855334

Dear Maintainer,

the new thunderbird package in Debian introduced a wrapper script, which
breaks xdg-email. See

jirka@debian:/mnt/v$ xdg-email mailto:1...@xxx.xxx
Illegal option -c

Usage: thunderbird [-h|-vg|-- @args]

This is because teh wrapper script expects real thunderbird options to
come after a --. Ie. "thunderbird -- -compose" works, "thunderbird
-compose" doesn't.

For a fix, you can just add -- to the command line when
launching. Luckily enough, this doesn't break even when thunderbird is
the vanilla executable. The attached patch should do the trick.

For a reference, see bugs #855406 and #855334.

Thanks for your effort

  Jiri Palecek

--- /usr/bin/xdg-email
+++ /usr/bin/xdg-email
@@ -555,7 +555,7 @@
 
     NEWMAILTO=$(echo "$NEWMAILTO" | sed 's/^,//')
     DEBUG 1 "Running $THUNDERBIRD -compose \"$NEWMAILTO\""
-    "$THUNDERBIRD" -compose "$NEWMAILTO"
+    "$THUNDERBIRD" -- -compose "$NEWMAILTO"
     if [ $? -eq 0 ]; then
         exit_success
     else



-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)
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>
pn  libnet-dbus-perl       <none>
pn  libx11-protocol-perl   <none>
ii  x11-utils              7.7+3
ii  x11-xserver-utils      7.7+7

Versions of packages xdg-utils suggests:
pn  gvfs-bin  <none>

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/xdg-email (from xdg-utils package)

Reply via email to