desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #114212
[Bug 1446650] [NEW] gnome-screenshot does not save --file when called with --clipboard option
Public bug reported:
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
** Affects: gnome-screenshot (Ubuntu)
Importance: Undecided
Status: New
--
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
Follow ups
References