Workspace Shortcut Icon Lost After Temp Folder Cleanup
Microsoft PowerToys version
0.84.1
Installation method
GitHub
Running as admin
No
Area(s) with issue?
Workspaces
Steps to reproduce
Open PowerToys and configure a Workspace. Save the Workspace settings. Check the desktop; a shortcut for the Workspace is created. Observe that the icon for the shortcut is stored at %USERPROFILE%\AppData\Local\Temp{unique-ID}.ico. Clear the Temp folder. Notice that the icon for the Workspace shortcut is missing or broken.
✔️ Expected Behavior
The Workspace shortcut icon should be stored in a permanent location, ensuring that it remains intact even after the Temp folder is cleaned.
❌ Actual Behavior
The Workspace shortcut icon is stored in the Temp folder, which causes it to be deleted when the Temp folder is cleaned, resulting in a missing or broken icon on the desktop shortcut.
Other Software
No response
This happened to me with version 0.87.1 after installing 24H2, which presumably must have cleaned up the temp directory. Here's an example of an icon file path: %USERPROFILE%\AppData\Local\Temp{4126DC60-368F-47D6-9AAC-1B7ADF8E2194}.ico
They can be restored by unchecking and re-checking "Create desktop icon" in the editor and saving the workspace ... but who stores permanent files in a temp directory??
This happened to me with version 0.87.1 after installing 24H2, which presumably must have cleaned up the temp directory. Here's an example of an icon file path: %USERPROFILE%\AppData\Local\Temp{4126DC60-368F-47D6-9AAC-1B7ADF8E2194}.ico
They can be restored by unchecking and re-checking "Create desktop icon" in the editor and saving the workspace ... but who stores permanent files in a temp directory??
No need to even uncheck-recheck. Just open the workspace in the editor and clicking "Save" will fix the icon.
But agreed--why can't the icon be saved in a permanent local appdata folder? This is a trivial fix.
No need to even uncheck-recheck. Just open the workspace in the editor and clicking "Save" will fix the icon.
Thanks; I hadn't noticed that.