Bug 340240

Summary: [wishlist] [ksnapshot] - a global hotkeys (winkey+prntscreen or a-like) in case system is broken to automatically take snapshot and save it in /home/ folder with default settings.....
Product: [Unmaintained] khotkeys Reporter: Simon Andric <simonandric5>
Component: generalAssignee: Aaron J. Seigo <aseigo>
Status: RESOLVED FIXED    
Severity: wishlist CC: me, simonandric5, thomas.luebking
Priority: NOR    
Version First Reported In: 5.3.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.5
Sentry Crash Report:

Description Simon Andric 2014-10-22 23:35:40 UTC
[wishlist] [frameworks] --- in case if system is hanged -- a feature that with the pressing the key "Print screen" a snapshot of the desktop would be taken and automatically saved under /home/yourname/..some randomname+number.jpg or png or such...

and that this function would be available globally -- it means withotu starting ksnapshot... so that it would always be available...

currently PRINT SCREEN in frameworks doesnt do anything...

i think in kde 4 it opened ksnapshot.... but in case the system is unresponsive, no way to save the picture

--- can i also ask that saving the picture  (in this case the same way--to some default location wiht a generic name and extension) in ksnapshot could be available with some "hotkey" combination? in the same case that pressing the button doesnt work...

thank you

Simon :)

Reproducible: Always
Comment 1 Thomas Lübking 2015-10-15 22:23:10 UTC
The command you're looking for is "xwd > ~/foobar.xwd" the format is not very internet friendly, but you can simply "convert ~/foobar.xwd ~/foobar.jpg".

This however won't work if the system is frozen on the X11 or kernel level (the only resolution is then the camera of your smartphone...)

The upcoming "spectacle" aims to replace ksnapshot and provides a "-o" parameter, I however doubt we'll bind that to printscreen by default because the system is "frozen" (notably due to formentioned limitation. If the X server doesn't process events, you cannot take a screenshot)
Comment 2 Boudhayan Gupta 2015-11-13 12:10:47 UTC
Spectacle installs its own hotkeys file which does automatically take a screenshot and save it in a folder without invoking the GUI - the keycombo is Shift+PrintScreen and the file location and name is user configurable.

As for taking a picture when the system is hanged - you can't. By definition, the system is hanged and won't respond to any user action.
Comment 3 Thomas Lübking 2015-11-30 13:34:57 UTC
Is spectacle already shipped w/ 5.5?
Comment 4 Boudhayan Gupta 2015-11-30 14:12:39 UTC
Ships with 15.12 in December, so yes, it'll be there in 15 days.
Comment 5 Thomas Lübking 2015-11-30 14:15:11 UTC
Then it shall be "fixed" ;-)