-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Desktop client does not connect to server with auto-launch on startup + auto-launch minimized #3212
Comments
@raphraph Does this reproduce on v5.10? |
I don't know yet, I didn't get any update notification for v5.10. |
@raphraph Can you manually install v5.10 and try it out? There are always new fixes with new versions. |
I just dit (it was actually available in the updates). I will report asap if it is fixed or not. |
@devinbinnie I just tested and it still does not work. Strangely I found this 2021 discussion on the forum which seems to answer to someone talking about this problem and stating that this is "the expected behavior"... In the meantime I will continue to use the auto-launch setting not minimized and minimize manually the window on startup. But I find it strange that this has not been considered a bug sooner... is this working correctly on other setups ? Thanks ! |
I think what they're referring to is someone asking if the app should autostart without having been opened once in the first place, the auto start entry is added when the app is launched, so it can't add anything without first launching the app once. As for the minimize issue, I'll have a look and see if I can reproduce. |
@raphraph Okay I was able to reproduce this issue. Funny enough it has nothing to do with the minimize (which is what I would expect - the window doesn't load therefore the servers don't), but that works just fine as long as the computer has loaded. What I'm suspecting is that Electron refuses to load views that need access to the keychain, as this prompt always pops up before the app loads: Created a ticket to investigate: https://mattermost.atlassian.net/browse/MM-61957 |
@devinbinnie Thanks so much for digging this ! I'm not a developer so I won't be able to help on code but I'll be glad to help on testing things if it is necessary. Thanks in advance to anyone taking the time to try to solve this 👍 |
Checks before filing an issue
Mattermost Desktop Version
5.9.0
Operating System
Linux Ubuntu 22.04 LTS
Mattermost Server Version
9.11.5
Steps to reproduce
Set the app to :
Reboot machine.
The app auto-launches correctly, and auto-launches minimized (no window is opened, and app icon appears in the task bar).
Expected behavior
The client should connect to the server (this is the normal behavior of an app running in the background) so that the user can be notified of new messages.
Otherwise the auto-launch minimized setting is useless as in order to be connected to the server I need to manually open the window and then minimize it again manually...
Observed behavior
I have to open the app window once in order that Mattermost fully launches. As long as I don't open the app window, Mattermost is not fully launched (not connected to the server) and I do not receive any notifications when a message is sent.
Once I open the app window once, I see that the app is connecting to the server, and then notifications will work fine event if I minimize the window again.
I observed that if I do not set the auto-launch minimized setting everything works ok : Mattermost launches on my machine startup, the app window opens and it connects to the server. If I then minimize the window notifications work fine.
Log Output
This is the log output of the autostart of yesterday when the problem occured (but it was set on "info" level, I will add later a full debug log when I have one) :
Additional Information
No response
The text was updated successfully, but these errors were encountered: