Version: (using KDE 4.0.83)
When using the "Open with..." dialog in Ksnapshot, one has no more use for the Ksnapshot window. Please add an option to automatically close the Ksnapshot window when "Open with..." has been selected. Thanks.
Created attachment 42249 [details]
Patch to call exit() when 'Open With' is selected
I have uploaded a patch for this. When 'Open With' is selected, KSnapshot will open the called program and then quit. After all, if you are opening the image in another program, you don't need KSnapshot running.
I have verified that KSnapshot exits normally using gdb.
I've discussed this with Celeste from the usability team, and she agreed with my own gut feeling that this probably doesn't fit with the most common use-case which is taking a series of screenshots. In that case, this would be a major annoyance.
Accordingly, I'm going to reject this change and close this bug as a WONTFIX.
Thank you very much for contributing the code, it really is appreciated however.
For people who would like this feature or similar, I added code to kwin some years back that would take a screenshot of a single window or the desktop and store it in the clipboard. You should be able to find the keybinding in the kwin keyboard shortcuts dialog.
(In reply to comment #3)
No problem, this was my first patch and I was just getting familiar with the code! :)
> doesn't fit with the most common use-case
> which is taking a series of screenshots.
How has it been determined that taking a series of screenshots is the most common use-case scenario?
Furthermore, even if one is taking a series of screenshots, it may still be logical to self-close. For one, taking a screenshot with the keyboard shortcut does not need the Ksnapshot window to be open (one would not want the Ksnapshot window to be part of the screenshot).
(In reply to comment #5)
> How has it been determined that taking a series of screenshots is the most
> common use-case scenario?
It's the opposite of what you want.