Repository navigation
Description
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
Summary
Ask whether Cryptomator should check for updates
Motivation
Currently, we have two boolean flags in our settings.json that are initially false on a clean install:
cryptomator/src/main/java/org/cryptomator/common/settings/SettingsJson.java
Lines 19 to 26 in 168b9ef
| @JsonProperty("askedForUpdateCheck") | |
| boolean askedForUpdateCheck = Settings.DEFAULT_ASKED_FOR_UPDATE_CHECK; | |
| @JsonProperty("autoCloseVaults") | |
| boolean autoCloseVaults = Settings.DEFAULT_AUTO_CLOSE_VAULTS; | |
| @JsonProperty("checkForUpdatesEnabled") | |
| boolean checkForUpdatesEnabled = Settings.DEFAULT_CHECK_FOR_UPDATES; |
Due to a missing dialog, askedForUpdateCheck is a dead variable. Therefore we must reintroduce such a dialog. Update check must not happen without user's consent. However, not updating might bear security risks as well. That's why I believe that the dialog should not ask for a permanent choice. I.e. instead of a boolean choice I would rather like to a date-based reminder.
Let's migrate askedForUpdateCheck from boolean to an ISO 8601 date in our settings file (default to 2000-01-01). Now, during application start, check whether the last askedForUpdateCheck is more than 14 days ago. If yes, prompt the user:
h1: Check for Updates?
p: Would you like Cryptomator to check whether an update is available?
btn: Not now
btn: Yes, once
btn: Yes, automatically
The latter would also set the checkForUpdatesEnabled = true.
Any button will set askedForUpdateCheck = {now}.
Any successful update check will also update askedForUpdateCheck.
We could also change the names of askedForUpdateCheck → lastUpdateCheck and checkForUpdatesEnabled → checkForUpdatesAutomatically (adding an @JsonAlias annotation to the corresponding fields to migrate from old settings.json).
Considered Alternatives
Add a separate "Would you like Cryptoamtor to check for updates automatically" dialog and keep the boolean value.
However, this would impose a permanent choice, possibly resulting in users to stay on outdated versions.
Anything else?
No response
Activity
infeo commentedon Jul 24, 2023
Closed with 91ece74
gohrner commentedon Sep 14, 2023
I'm using the official sebastian-stenzel/cryptomator PPA, so Cryptomator gets updated automatically this way on my system.
Is there a way to disable the redundant update check and questin dialog altogether, not only for 14 days? It does not really make sense if Cryptomator comes from a package repository.
overheadhunter commentedon Sep 14, 2023
@gohrner not currently, we need to fix this.
Edit: I've created #3117 to track this.
infeo commentedon Sep 1, 2024
Cryptomator neither enforces updates nor requires an internet connection for full functionality.