Closed Arcitec closed 1 month ago
This bug happens extremely frequently for my mother, who is in the habit of clicking the Close button on app windows constantly. So several times per day when she clicks on Vesktop she gets a new login request.
I'm gonna have to set her Vesktop to "exit after closing window, do not stay in tray" for now... (Vesktop Settings: Behavior: Minimize to Tray = Off).
Oh and if I had to guess, this is most likely a bug in the Electron wrapper and nothing that you can do anything about?
@Covkie Ah thank you, great find! Yes that sounds extremely likely to be the issue, because we both use Steam and launch Steam frequently.
Edit: https://github.com/electron/electron/issues/43350#issuecomment-2355588960
Edit: I see you reported it to Electron originally. Thank you for that.
I've had the stock Discord app from Discord themselves also do this every time I start it from either the dock or KDE's application menu; I'm not sure if this is exclusive to Vesktop.
Edit: It's an upstream bug, waiting on: https://github.com/electron/electron/issues/43350
Operating System
Fedora Workstation 40
Linux Only ~ Desktop Environment
GNOME on Wayland
Package Type
Official RPM
What happens when the bug or crash occurs?
Vesktop often opens duplicate copies of itself after you close its window. And because it opens multiple copies of itself (running simultaneously), it breaks the login state:
What is the expected behaviour?
The startup task should detect the running instance and trigger it to open the window instead of starting a new copy of the app.
How do you recreate this bug or crash?
I have seen this bug on 2 separate computers now. Which leads me to believe that there's no code (or incomplete code) for "detect a running Vesktop instance and bring that to life instead of starting a new copy of the app".
Typically, apps will do some kind of thing like this to solve that:
Debug Logs
Alright... I see something that indicates what this bug is about...
vesktop
in the terminal:vesktop
in terminal again while the duplicate copy is running:So it seems to me like the existing instance check fails and core-dumps once. Then, the next time, it starts a new instance instead, and then after that, it's able to find the new instance and bring that to the front.
This actually perfectly matches up with the fact that the dock button does NOTHING the first time you click it and then the SECOND click it brings up a new app copy. This indicates that the core dump/crash happens, and then the next click starts a fresh instance instead.
So it's basically losing contact with the older app instance sometimes. Hmm.
Request Agreement