← Back to team overview

desktop-packages team mailing list archive

[Bug 1446650] Re: gnome-screenshot does not save --file when called with --clipboard option

 

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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-screenshot in Ubuntu.
https://bugs.launchpad.net/bugs/1446650

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

Status in gnome-screenshot package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-screenshot/+bug/1446650/+subscriptions


References