syncthing-tray icon indicating copy to clipboard operation
syncthing-tray copied to clipboard

thousands of systray_temp_icon* files temp directory

Open kowach opened this issue 9 years ago • 7 comments

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.

kowach avatar Jun 08 '16 07:06 kowach

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...

alex2108 avatar Jun 08 '16 11:06 alex2108

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.

kowach avatar Jun 08 '16 11:06 kowach

Why is it writing icons anyway? It should just write once and then load/reload the appropiate icon.

xor-gate avatar Jun 11 '16 12:06 xor-gate

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

xor-gate avatar Jun 11 '16 22:06 xor-gate

same for windows: https://github.com/getlantern/systray/blob/8e63b37ef27d94f6db79c4ffb941608e8f0dc2f9/systray_windows.go#L66

not sure about OSX, is it done better there?

alex2108 avatar Jun 12 '16 07:06 alex2108

@alex2108 OSX loads it in a different way yes. No temporary file saves to disk (as far as I see).

xor-gate avatar Jun 12 '16 07:06 xor-gate

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.

alex2108 avatar Jun 12 '16 17:06 alex2108