email not possible

Bug #1242611 reported by Thomas
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
shutter (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When I try to email a screenshot from within shutter it complains that xdg-email produced an error. The only detail is: Exit Code: 2.
This is a regression, so it worked already in prior Ubuntu releases.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: shutter 0.90-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
NonfreeKernelModules: fxmc_usb gxsd prl_fs_freeze prl_fs prl_tg prl_eth
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Mon Oct 21 12:03:22 2013
InstallationDate: Installed on 2012-08-18 (429 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: shutter
UpgradeStatus: Upgraded to saucy on 2013-10-18 (2 days ago)

Revision history for this message
Thomas (t-hartwig) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in shutter (Ubuntu):
status: New → Confirmed
Revision history for this message
Karl Maier (w-wall2001) wrote :

The German error message is:
Beim Ausführen von 'xdg-email' ist ein Fehler aufgetreten.
Fehler beim Ausführen von 'xdg-email'.
Exit-Code: 2.

On the command line,

 xdg-email --attach /tmp/myfile.txt

 opens an e-mail composition dialog of Thunderbird just fine, but without attachment. So maybe this is (also?) an xdg-email bug.

Changed in shutter (Ubuntu):
importance: Undecided → Low
Revision history for this message
Thomas E. Horner (thomas.horner) wrote :

with the following patch "shutter" -> "Email" works correctly on Ubuntu 14.10 again:

the first change makes sure that only the first occurrence of Exec in thunderbird's desktop file is considered: | head -n 1.
the second change is a fix for what is clearly a bug (having $browser instead of the correct variable $desktop).

diff -u org/xdg-email fixed/xdg-email
--- org/xdg-email 2014-07-16 11:43:48.000000000 +0200
+++ fixed/xdg-email 2014-12-30 17:44:27.990930489 +0100
@@ -321,7 +321,7 @@
         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 -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"
         command="`which "$command"`"
         readlink -f "$command"
         return
@@ -512,7 +512,7 @@
     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"

Revision history for this message
Rob Frohne (frohro) wrote :

Seems to be happening in Ubuntu 16.04 too.

Revision history for this message
Thomas Mayer (thomas303) wrote :

I get this error on fully patched 16.04, when trying to e-mail shutter screen shots:

Fehler beim Ausführen von 'xdg-email'

Which translates to:

Error when executing 'xdg-email'

Revision history for this message
Thomas Mayer (thomas303) wrote :

Debian fixed this via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819149:

Date: Tue, 06 Dec 2016 21:53:19 +0800
Source: shutter
Binary: shutter
Architecture: source
Version: 0.93.1-1.1
Distribution: unstable

Revision history for this message
Thomas Mayer (thomas303) wrote :

My problem fully relates to https://bugs.launchpad.net/ubuntu/+source/shutter/+bug/1469840

No need to track this here any more.

no longer affects: shutter (Debian)
Revision history for this message
Peter Ludwig (peter-ludwig) wrote :

I am not sure if this a duplicate ...
The mentioned duplicate addresses "simple scan and thunderbird".
But with "simple scan and thunderbird" I do not have any problems sending files.

If I want to send any document in LibreOffice writer I can use the menu "send -> document as email" and it works flawlessly.
If I use "simple scan" and want to send a scanned file with thunderbird it works lawlessly too. (all done from the menu of the mentioned application (simple scan and LO writer)

But if I do the same in "shutter" -> "send with e-mail" I get the above mentioned error message.
So I think it does not really address thunderbird but shutter itself? I tried the newest shutter version but the problem is still there.

Sorry for my bad english.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.