Open kowach opened 8 years ago
looks like they never get deleted (a problem in systray I assume...) I could add a workaround that deletes every systray_temp_icon*
file at startup but in the (unlikely) case that someone runs different programs using systray that could cause problems...
I think that new icon is created every time icon changes in tray. By file timestamp I see it's created every few minutes or seconds.
Why is it writing icons anyway? It should just write once and then load/reload the appropiate icon.
I'm sorry about my previous comment but it seems to be inside the github.com/getlatern/systray
linux implementation:
https://github.com/getlantern/systray/blob/master/systray_linux.c#L11-L12
same for windows: https://github.com/getlantern/systray/blob/8e63b37ef27d94f6db79c4ffb941608e8f0dc2f9/systray_windows.go#L66
not sure about OSX, is it done better there?
@alex2108 OSX loads it in a different way yes. No temporary file saves to disk (as far as I see).
More or less fixed by the latest release. On a crash/forced quit there may stay one icon that never gets deleted but it does not create infinite icons while running.
I found around 660,000 icon files (taking 2.4GB of space) in my temp directory (on windows 10 x64).
systray_temp_icon692992209
and similar.