Open raffis opened 4 years ago
@raffis just tested both cases (fresh install and unlinked account) with client v1.2.0. The process gets quit with the following log entries:
2019-12-02 10:11:37 ERROR <main> [startup]: failed ask for credentials ({"error":{"stack":"Error: auth window closed by user\n at BrowserWindow.windowClosedByUserHandler (/Applications/Balloon.app/Contents/Resources/app.asar/app/ui/startup/controller.js:135:20)\n at emitOne (events.js:121:20)\n at BrowserWindow.emit (events.js:211:7)","message":"auth window closed by user"}})
2019-12-02 10:11:37 ERROR <main> [main]: startup checkconfig ({"error":{"stack":"Error: auth window closed by user\n at BrowserWindow.windowClosedByUserHandler (/Applications/Balloon.app/Contents/Resources/app.asar/app/ui/startup/controller.js:135:20)\n at emitOne (events.js:121:20)\n at BrowserWindow.emit (events.js:211:7)","message":"auth window closed by user"}})
Could we get the logs when the issue occurs?
Issue was accidentally closed because of commit mentioning wrong issue.
Was able to reproduce this behavior on windows, after #161 occured and startup window was closed. Although not every time.
The error is reproducible, after a login attempt failed (token,basic or oidc).
The closed
event should probably only be removed before the window is closed after a successful login.
https://github.com/gyselroth/balloon-client-desktop/blob/39f00005a818df5658de847a814fa72e917ab4d9/app/ui/startup/controller.js#L191 https://github.com/gyselroth/balloon-client-desktop/blob/39f00005a818df5658de847a814fa72e917ab4d9/app/ui/startup/controller.js#L148
Describe the bug
balloon is running in the background if a startup wizard window gets closed.
To Reproduce
Expected behavior
If the auth window gets closed (or any other window during the wizard while no tray is displayed) the client must be killed completely since there is no advantage of keeping it running the background anyway.
Environment