Bug 357423

Summary: Optionally copy filepath to clipboard when image is saved to file
Product: [Applications] Spectacle Reporter: Gregor Mi <codestruct>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 16.08

Description Gregor Mi 2016-01-02 11:23:39 UTC
It would be nice to copy the filepath to which the screenshot was just saved to clipboard. This way it can be immediately used in other applications (like the file chooser of the web browser).

A message panel could inform the user (similarly as it is done when the "Copy To Clipboard" button is used).
Comment 1 Boudhayan Gupta 2016-01-02 13:52:53 UTC
Currently the pixmap as well as the URL to the pixmap is copied to the clipboard. If you want to copy the URL in plain text - I'm not sure if it's possible. Do you want to provide a patch? The code is in SpectacleCore.cpp
Comment 2 Gregor Mi 2016-01-02 22:51:50 UTC
I'll add that to my queue.

> the URL to the pixmap is copied to the clipboard
How could I make use of it if not pasting it to a text editor (which currently has no effect)?
Comment 3 Boudhayan Gupta 2016-01-17 15:28:31 UTC
Okay, I misunderstood your bug request. You mean the path to the saved image, not the temporary image. I'll add this as an optional feature in a later version.
Comment 4 Boudhayan Gupta 2016-04-25 22:25:20 UTC
Git commit 7a177901d9dcd93731b2f9bee4ce80c76613d403 by Boudhayan Gupta.
Committed on 25/04/2016 at 22:24.
Pushed by bgupta into branch 'master'.

Optionally copy the save location to the clipboard
FIXED-IN: 16.08

M  +27   -0    src/Gui/SettingsDialog/GeneralOptionsPage.cpp
M  +1    -0    src/Gui/SettingsDialog/GeneralOptionsPage.h
M  +4    -1    src/Main.cpp
M  +13   -0    src/SpectacleConfig.cpp
M  +3    -0    src/SpectacleConfig.h
M  +9    -3    src/SpectacleCore.cpp
M  +1    -1    src/SpectacleCore.h

http://commits.kde.org/kscreengenie/7a177901d9dcd93731b2f9bee4ce80c76613d403
Comment 5 Gregor Mi 2016-04-26 17:59:08 UTC
Thanks for implementing this, I am eager to try it out as soon as I get the latest version.