Skip to content

Update Reminder #2984

Closed
Closed

Description

@overheadhunter

Please agree to the following

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:

@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

  1. added
    good first issue
    on Jul 4, 2023
  2. added this to the 1.10.0 milestone on Jul 18, 2023
  3. infeo commented on Jul 24, 2023

    @infeo
    Member

    Closed with 91ece74

  4. gohrner commented on Sep 14, 2023

    @gohrner

    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.

  5. overheadhunter commented on Sep 14, 2023

    @overheadhunter
    MemberAuthor

    @gohrner not currently, we need to fix this.

    Edit: I've created #3117 to track this.

  6. infeo commented on Sep 1, 2024

    @infeo
    Member

    Forcing updates is like taking off your pants to fart! As an encryption software, forcing an Internet connection is a very unwise design!

    Cryptomator neither enforces updates nor requires an internet connection for full functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuemisc:gui

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions