gnome-screenshot does not save --file when called with --clipboard option

Bug #1446650 reported by Stefan Thieme
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-screenshot (Ubuntu)
New
Low
Unassigned

Bug Description

Dear developers,

I tried both options --file and --clipboard individually and they just work.
user@host ~/ $ gnome-screenshot --area --file=/home/user/Desktop/Screenshot_1.png
user@host ~/ $ gnome-screenshot --area --clipboard

However running gnome-screenshot with both options does not work as intended, i.e. make a copy to the clipboard AND store a copy on my desktop or in a Screenshot folder for later reference. I am used to this behaviour from the LightScreen app.

user@host ~/ $ gnome-screenshot --area --file=/home/user/Desktop/Screenshot_1.png --clipboard

I guess the problem is with the following peace of code from gnome-screenshot-3.16.0/src/screenshot-application.c

  if (screenshot_config->copy_to_clipboard)
    {
      screenshot_save_to_clipboard (self);
      screenshot_play_sound_effect ("screen-capture", _("Screenshot taken"));

      g_application_release (G_APPLICATION (self));

      return;
    }

It obviously does a g_application_release and return before actually saving the image to file.
Suggested fix is to move this code block after the block saving the image to make it work.

Kind regards,
Stefan

Revision history for this message
Stefan Thieme (thymian) wrote :

user@host ~/ $ lsb_release -rd
Description: Linux Mint 17.1 Rebecca
Release: 17.1
user@host ~/ $ apt-cache policy gnome-screenshot
gnome-screenshot:
  Installed: 3.8.2+qiana
  Candidate: 3.8.2+qiana
  Version table:
     3.10.1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
 *** 3.8.2+qiana 0
        700 http://packages.linuxmint.com/ rebecca/upstream amd64 Packages
        100 /var/lib/dpkg/status

summary: - gnome-screenshot does not save --file when called wgnome-screenshot does
- not save --file when called with --clipboard optionith --clipboard
+ gnome-screenshot does not save --file when called with --clipboard
option
Revision history for this message
Hameed (hameed-z) wrote :

I am having the same issue and mentioned here.

Running gnome-screenshot with both --clipboard & --file options does not work as intended.
It sends the captured screen only to the clipboard but it does not save it in the mentioned file.

It would be great if it's fixed.

Cheers!!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gnome-screenshot (Ubuntu):
importance: Undecided → Low
Revision history for this message
Ahmad Hasbini (a-g-hasbini) wrote :

I'm experiencing the same issue. I've reported the bug as instructed, the following is the link to the bug:
https://bugzilla.gnome.org/show_bug.cgi?id=768643

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.