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
Disable GUI notification for newer version #2931
Conversation
|
I just noticed the |
|
Am I understanding you correctly that the annoying part with the current app is that users get update notifications in the GUI? If so. I think this better be solved in the GUI only. Change the GUI so it ignores version update broadcasts in one way or another. Also, make it configurable at runtime rather than build time. Then you can easily set an environment variable in your GUI launch |
|
Yup, the ultimate goal is to not have a notification in the GUI. I believe the only place it shows via CLI is on From a packaging perspective, the build option works great, is simple, and eliminates any network requests that won't be needed at runtime. However, I agree a runtime option for disabling in GUI is probably the right way to think about this, especially as it enables anybody to easily disable the version check. I'll dig into the GUI code and take a second shot at this. Appreciate the feedback! |
|
It appears this would be the correct place to return early, to avoid setting the upgrade version and notifying. mullvadvpn-app/gui/src/main/index.ts Lines 931 to 966 in ef7c3ca
This is called when the daemon is first connected and on daemon subscription: mullvadvpn-app/gui/src/main/index.ts Lines 590 to 591 in ef7c3ca
mullvadvpn-app/gui/src/main/index.ts Lines 659 to 676 in ef7c3ca
|
fafb049
to
e9aba0d
Compare
|
I've updated this to the proposed GUI change using I've backported this to 2021.3 and tested, it works as expected.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
Could you add this environment variable to the readme? It would fit well under this heading: https://github.com/mullvad/mullvadvpn-app#supported-environment-variables
|
Can we please prefix the env variable name with |
edc7961
to
d77e1e6
Compare
Good recommendation, we definitely don't want to risk any overlaps. I've renamed the variable to |
d77e1e6
to
3ccd551
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks for the contribution!
I'm packaging Mullvad for Solus OS and it'd be nice to disable the version check and GUI notification. Package updates are shipped to users every Friday, so the notice is really unnecessary, especially because they can't just "update" via a
.debor.rpm.I've added a feature flag on the daemon,
disable-version-check, which just replaces the app version request with an "empty" response that won't show as an update.This seemed like the best place to disable this, as the
VersionUpdateris pretty well tied into the daemon.I've tested by patching this against 2021.3 and successfully did not see any version update notification. The output of
mullvad versionis:Git checklist:
CHANGELOG.mdunder the[Unreleased]header.This change is