mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
e11c21ce98
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.