Send by e-mail generates error (ctrl-shft-E)

Bug #1469840 reported by Alfredo Pacheco Jr
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Shutter
Fix Released
Undecided
Andrew Rembrandt
shutter (Debian)
Fix Released
Unknown
shutter (Ubuntu)
Undecided
Unassigned

Bug Description

When taking a screenshot and selecting the option "Send by email" (ctrl+shft+E), an error occurs. I receive the following:

! There was an error executing 'xdg-email'.
Error while executing 'xdg-email'.

Exit code 2

I have xdg-utils installed.

Lubuntu 14.04
Shutter v0.93.1

Related branches

Revision history for this message
Alfredo Pacheco Jr (alfredo-pacheco32) wrote :

This is a screenshot of the error.

Revision history for this message
Robin Lee (cheeselee) wrote :

xdg-email accepts file path not URI.

Changed in shutter:
status: New → Fix Committed
assignee: nobody → Andrew Rembrandt (b-andrew)
Revision history for this message
Andrew Rembrandt (b-andrew) wrote :

Confirmed this bug still exists on Arch Linux with the latest official package:
community/shutter 0.93.1-3
(extra/xdg-utils 1.1.1-4; xdg-email 1.1.0 rc3)

And also a build of the latest code exhibits the same problem.

I've just proposed Robin Lee's fix for merging onto the main branch.

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Andrew Rembrandt: I cannot reproduce this problem on Arch Linux. I included the fix by Robin Lee in the newest revision of Shutter, however, please check if it works now.

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

Still getting this error with fully-patched ubuntu 16.04, shutter version 0.93.1 rev. 1278

Debian patched something recently, thereby referencing to this issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819149

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

The patch of comment 2 seems not to be applied to the ubuntu 16.04 package.

By applying it to /usr/bin/shutter, sending E-Mails from shutter now works for me.

I attached the patch I used therefore (which does the same as the patch from comment 2, just for ubuntu 16.04).

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
Michael Kogan (michael-kogan) wrote :

It is not applied to the Ubuntu package, I assume, I only applied it to the Arch Linux package. :)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "xdg-email accepts file path not URI." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in shutter (Debian):
status: Unknown → Fix Released
Revision history for this message
Marco Righi (marco-righi) wrote :
Download full text (3.9 KiB)

My Ubuntu has the described bug: error 2 on sending e-mail.

Command 2004 of 10 $dpkg -s shutter
Package: shutter
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 17230
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Version: 0.93.1-1ubuntu1
Depends: libgtk2-perl, libglib-perl, libgnome2-perl, libgnome2-vfs-perl, libgnome2-wnck-perl, libgnome2-gconf-perl, liblocale-gettext-perl, libxml-simple-perl, libwww-mechanize-perl, libwww-perl, perlmagick, libx11-protocol-perl, librsvg2-common, libfile-basedir-perl, libfile-copy-recursive-perl, libproc-simple-perl, libfile-which-perl, libsort-naturally-perl, libgtk2-imageview-perl, libnet-dbus-perl, libgnome2-canvas-perl, imagemagick, libgtk2-unique-perl, libproc-processtable-perl, procps, xdg-utils, libpath-class-perl, libjson-perl, libjson-xs-perl, libnet-dropbox-api-perl
Recommends: libgoo-canvas-perl, libgtk2-appindicator-perl
Suggests: gnome-web-photo, nautilus-sendto, libimage-exiftool-perl, libnet-dbus-glib-perl
Description: feature-rich screenshot program
 Shutter is a feature-rich screenshot program. You can take a
 screenshot of a specific area, window, your whole screen, or even of
 a website - apply different effects to it, draw on it to highlight
 points, and then upload to an image hosting site, all within one
 window.
 .
 Features:
    * take a screenshot of your complete desktop, a rectangular area
      or capture a website
    * take screenshot directly or with a specified delay time
    * save the screenshots to a specified directory and name them in a
      convenient way (using special wild-cards)
    * Shutter is fully integrated into the GNOME Desktop (TrayIcon etc.)
    * generate thumbnails directly when you are taking a screenshot
      and set a size level in %
    * Shutter session collection
          o keep track of all screenshots during session
          o copy screeners to clipboard
          o print screenshots
          o delete screenshots
          o rename your file
    * upload your files directly to Image-Hosters (e.g. imgur.com), retrieve
      all the needed links and share them with others
    * edit your screenshots directly using the embedded drawing tool
Homepage: http://shutter-project.org/
Original-Maintainer: Ryan Niebur <email address hidden>

Command 2005 of 11 $lsb_release
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch

Command 2007 of 13 $dpkg -s xdg-utils
Package: xdg-utils
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 302
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Multi-Arch: foreign
Version: 1.1.1-1ubuntu1.16.04.1
Recommends: libfile-mimeinfo-perl, libnet-dbus-perl, libx11-protocol-perl, x11-utils, x11-xserver-utils
Suggests: gvfs-bin
Description: desktop integration utilities from freedesktop.org
 xdg-utils contains utilities for integrating applications with the
 desktop environment, regardless of which desktop environment is used.
 They are part of freedesktop.org's Portland project.
 .
 The following ...

Read more...

Changed in shutter:
status: Fix Committed → New
status: New → Confirmed
Revision history for this message
Mauricio López (mauricio-pronet) wrote :

I get the same error selecting:
1) Menu File - Send by Email...
2) Shift + Ctrl + E

There was an error executing 'xdg-email'.
Error while executing 'xdg-email'.
Exit Code: 2.

Excecuting xdg-email on the terminal it launches a new email window with the default email client (Thunderbird).
Output of sudo dpkg -s xdg-utils is:
Package: xdg-utils
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 302
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Multi-Arch: foreign
Version: 1.1.1-1ubuntu1.16.04.1
Recommends: libfile-mimeinfo-perl, libnet-dbus-perl, libx11-protocol-perl, x11-utils, x11-xserver-utils
Suggests: gvfs-bin
Description: desktop integration utilities from freedesktop.org
 xdg-utils contains utilities for integrating applications with the
 desktop environment, regardless of which desktop environment is used.
 They are part of freedesktop.org's Portland project.
 .
 The following utilities are included:
 .
 * xdg-desktop-menu - Install desktop menu items
 * xdg-desktop-icon - Install icons on the user's desktop
 * xdg-email - Compose a new email in the user's preferred email client,
   potentially with subject and other info filled in
 * xdg-icon-resource - Install icon resources
 * xdg-mime - Query and install MIME types and associations
 * xdg-open - Open a URI in the user's preferred application that
   handles the respective URI or file type
 * xdg-screensaver - Enable, disable, or suspend the screensaver
 * xdg-settings - Get or set the default web browser and URI handlers
 .
 If you are running GNOME, make sure that the gvfs-bin package is
 installed.
Homepage: http://www.freedesktop.org/wiki/Software/xdg-utils/
Original-Maintainer: Per Olofsson <email address hidden>

Machine info:
------------

OS: Linux Mint 18.1 Serena x86_64
Kernel: 4.8.0-53-generic
Cinnamon 3.2.7
CPU: AMD FX-8350 (8) @ 4.000GHz
GPU: NVIDIA GeForce GT 240
Memory: 2666MiB / 16029MiB

Revision history for this message
Andrew Rembrandt (b-andrew) wrote :

Hi Photon/Michael,

Apologies for the delay - have only just returned to using Arch last month. Just tested the email screenshot option (with aur/shutter 0.93.1-11) and it works fine now.

Many thanks for sorting that. Merge into master?

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Some people got in contact with Mario, Shutter's developer, to get push access to Shutter's main branch and merge the patches which accumulated so far, see the comments here: https://code.launchpad.net/~systemdisc/shutter/imgur-fix/+merge/313977

Revision history for this message
Andrew Rembrandt (b-andrew) wrote :

Fantastic - thanks for taking over the project - fanastic tool (although I did shy away when I saw the size of some of the source files)

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Applied the patch in rev.1282.

Changed in shutter:
status: Confirmed → Fix Committed
Changed in shutter:
milestone: none → 0.94
Changed in shutter:
status: Fix Committed → Fix Released
Changed in shutter (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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