Fix chromium backend icon write failing with ENOENT #1

Merged
shocklateboy92 merged 1 commits from fix/chromium-icon-tempdir-drop into master 2026-05-25 14:05:50 +02:00

1 Commits

Author SHA1 Message Date
Lasath Fernando
7fc81ececa Fix chromium backend icon write failing with ENOENT
The chromium build path created a TempDir via `tempdir()?.path().join(...)`,
which dropped the TempDir at the end of the statement and deleted the
directory before fetch_or_create_icon could write into it. Every
`deskify build --backend chromium` failed with:

    Error: Failed to write RGBA PNG icon to /tmp/.tmpXXXXXX/icon.png
    Caused by: No such file or directory (os error 2)

Bind the TempDir to a local like the tauri branch already does so it
lives until the icon has been written and copied to its final location.
2026-05-18 20:44:16 -05:00