Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

update does not remember the tray icon position

Open wangxiexe opened this issue 10 years ago • 5 comments

after each update, the icon will be hidden again ( which I have manually dragged to visible )

any thing I can do ?

image

wangxiexe avatar Oct 30 '16 06:10 wangxiexe

anything I can do ?

wangxiexe avatar Dec 07 '16 06:12 wangxiexe

I had a similar problem. The TrayIcon didn't remember the position and also the Notification Center got flooded with new Notification Center apps.

I figured out what the reason is: https://github.com/Squirrel/Squirrel.Windows/blob/master/src/Squirrel/TrayHelper.cs#L106 This checks for the exe in the package being inside the path of the TrayIcon, however the Path is converted to lowercase a few lines above. So if the exe does have uppercase letters it's not recognized and it jumps to "keepItem". My temporary fix is to rename my .exe to lowercase, but I think that should be fixed.

WolfspiritM avatar Feb 11 '18 16:02 WolfspiritM

#951 seemed like a controversial change at the time, but it might fix this.

Thieum avatar May 08 '19 17:05 Thieum

@wangxiexe does you application have uppercase letters? If yes, this might be fixed by the suggested https://github.com/Squirrel/Squirrel.Windows/issues/863#issuecomment-364764573.

gojanpaolo avatar May 09 '19 15:05 gojanpaolo

From https://github.com/electron/electron/issues/39032#issuecomment-1628525940:

This can be "fixed" by providing a unique guid to the new Tray constructor. This guid should be unique to your app and never change. It is associated with your apps signature so changing your apps name or signature will invalidate the guid and you'll have to ship an update with a new guid. Be careful when testing this feature as each guid you use on an unsigned app will be "burned" by windows.

Ref: https://www.electronjs.org/docs/latest/api/tray#new-trayimage-guid

tbertels avatar Jul 10 '23 12:07 tbertels