mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 21:17:48 +00:00
An app that does not send the image back wrote the window capture to vectorcraft-window-<pid>.png directly in the system's temporary folder. On a shared Unix temporary folder another user could put a link at that name, and the app would then overwrite the file it points to. A failed read also left the file behind. The capture now goes to window.png in a new folder made for it inside the temporary folder (owner-only on Unix; a name that is taken is skipped). The folder is removed after the read, also when the app or the read fails.