summaryrefslogtreecommitdiffstats
path: root/ksvg/data
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-11-01 17:17:59 +0300
committerFat-Zer <fatzer2@gmail.com>2025-11-25 16:46:18 +0000
commit2f927acd565e0741e8c299c89152e1cf92ecac43 (patch)
treeb8826e1ff3b21a91a25fb329e8c0c1d31feadf99 /ksvg/data
parent7583327200ad3f29dbf447a21e2a90600c7ed292 (diff)
downloadtdegraphics-master.tar.gz
tdegraphics-master.zip
ksnapshot: declare text/uri-list format when drag&droppingHEADmaster
This enables drag&dropping screenshots directly into a browser window. As a side effect when drag&dropping into most file managers (into konquerror in particular) this will also cause them to copy a png file instead of asking a user in what format they would like to save the image. Besides that commit includes: - Rework of handling of temporary files, in particular: - Temporary files now try to use a friendlier names with timestamps e.g. `snapshot-20251108-211852.png`. And fallback to use `mkstemp()`-style suffix if the name already in use. - When "Open with" is issued several times the temporary file will be created only once. - If the file was already saved by the user ksnapshot won't create an additional temporary one for drag&drop or "Open with", but rather use the saved one. - "Open with" temporary files are no longer removed after the process terminates, but are kept around until exit from ksnapshot. Removing the files right after process termination caused failures to open the file when they were passed to another (already running) instance of a program instead of a new one (e.g. in gimp). - Some refactoring for code deduplocation. - Some helper classes. Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tdegraphics/issues/135 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'ksvg/data')
0 files changed, 0 insertions, 0 deletions