screenshot hotkeys don't function in Stretch

Everything about X, Gnome, KDE, ... and everything running on it

screenshot hotkeys don't function in Stretch

Postby shakman » 2017-12-27 16:55

9.3 (Live from USB flash key), Gnome 3.22.2

Whole screen screenshot defined as "Ctrl + Print", under Settings - Keyboard, just as it was under Jessie (8.7, Live or fully installed) doesn't do anything at all-- no "shutter" sound, nothing in appropriate in clipboard to paste into Pinta (etc.)

This worked as expected under Jessie.

Not sure where to look to correct this "in"-action.

$ gnome-screenshot
produces the "shutter" sound but trying to paste into Pinta results in, "Image cannot be pasted,. The clipboard does not contain an image."

In this case the images ARE however saved to ~/Pictures (or ~/ when running as root)

As root, I additionally get this error message:
# gnome-screenshot
** Message: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.

(Adding the option -a to the command makes the command NOT work for root, but still OK for unpriv. user)

Further,
$ gnome-screenshot -i
which brings up the dialog for gnome-screenshot, works as expected and selecting "Copy to clipboard" *after* the screenshot is taken, works perfectly, putting the image into the clipboard.

To be clear, using the Keyboard Shortcut does absolutely nothing.

Thanks
shakman
 
Posts: 29
Joined: 2014-01-17 04:54

Re: screenshot hotkeys don't function in Stretch

Postby Dai_trying » 2017-12-27 20:07

This doesn't really address your problem, but this is a script I use for taking screenshots when there is not a package installed (or available) I keep this (and a few others) on a pendrive to use when needed. It will take a screenshot (fullscreen) and save it to ~/Pictures/ with the date/time as a prefix to prevent overwriting a duplicate. It might be useful to you.

Code: Select all
#!/bin/bash

Pic_Path="/home/$USER/Pictures/"
Pic_Name="ScreenShot"
nowtime=$(date +"%Y-%m-%d_%H:%M:%S")

xwd -root | convert xwd:- ${Pic_Path}${nowtime}_${Pic_Name}.png


This second one will prompt you to select the window to take the snapshot of (useful if you just want one particular window in the image)

Code: Select all
#!/bin/bash

Pic_Path="/home/$USER/Pictures/"
Pic_Name="ScreenShot"
nowtime=$(date +"%Y-%m-%d_%H:%M:%S")

xwd -frame | convert xwd:- ${Pic_Path}${nowtime}_${Pic_Name}.png


It does rely on having imagemagik installed but that is often available on live-cd's (the ones I have tested mostly have it) and I prefer this method due to it being considerably smaller than some of the screenshot apps available but I understand many prefer a "proper app" for this.

It is quite trivial to connect these scripts to a keyboard combination for permanent use too.
Dai_trying
 
Posts: 447
Joined: 2016-01-07 12:25

Re: screenshot hotkeys don't function in Stretch

Postby shakman » 2017-12-28 17:09

Thanks for sharing your alternative, much appreciated.
shakman
 
Posts: 29
Joined: 2014-01-17 04:54

Re: screenshot hotkeys don't function in Stretch

Postby GarryRicketson » 2017-12-28 21:47

I like that script, see this : http://forums.debian.net/viewtopic.php?f=3&t=59034&p=662223#p662223
I made some slight mods, and now I just type 'scrnshot' , at the prompt, and
it takes the screen shot, makes a thumbnail, and uploads both.
User avatar
GarryRicketson
 
Posts: 4802
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: screenshot hotkeys don't function in Stretch

Postby Dai_trying » 2017-12-28 23:38

@shakman
Your welcome.

@Garry
That's another good thing about this, the ability to customize it to use in other scripts does make it very versatile.
Dai_trying
 
Posts: 447
Joined: 2016-01-07 12:25


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable