Skip to content

fix(updater): backport #9406 — respect autoUpdateCheck in Sparkle background checks#9705

Open
pedromdbl wants to merge 1 commit intonextcloud:stable-4.0from
pedromdbl:fix/backport-9406-sparkle-auto-update-check
Open

fix(updater): backport #9406 — respect autoUpdateCheck in Sparkle background checks#9705
pedromdbl wants to merge 1 commit intonextcloud:stable-4.0from
pedromdbl:fix/backport-9406-sparkle-auto-update-check

Conversation

@pedromdbl
Copy link
Copy Markdown

Summary

Backport of #9406 to stable-4.0.

  • backgroundUpdateChecksAllowed now checks both !config.skipUpdateCheck() and config.autoUpdateCheck() before allowing Sparkle background update checks
  • backgroundCheckForUpdate() now uses config.autoUpdateCheck() instead of !ConfigFile().skipUpdateCheck()

Without this fix, the Sparkle update dialog reappears daily on macOS even after the user clicks "Install Update", because the delegate creates an inconsistency in Sparkle 2's state management by not properly consulting the auto-update configuration.

Fixes #9704

Test plan

  • Verify that disabling "Automatically check for updates" stops the Sparkle background update dialog
  • Verify that with auto-update enabled, the update flow works correctly
  • Verify that skipUpdateCheck in nextcloud.cfg still prevents all update checks

@i2h3
Copy link
Copy Markdown
Collaborator

i2h3 commented Mar 30, 2026

@pedromdbl You need to rebase and correct your sign-off line which contains the wrong mail address. Otherwise this is fine. 🙂

…ecks

Backport of nextcloud#9406 to stable-4.0.

The backgroundUpdateChecksAllowed delegate method only checked
skipUpdateCheck() but ignored autoUpdateCheck(), causing Sparkle
background update checks to always run regardless of the user's
auto-update preference. This led to the update dialog appearing
daily even after clicking "Install Update", as Sparkle's internal
state machine became inconsistent.

Similarly, backgroundCheckForUpdate() used !skipUpdateCheck()
instead of autoUpdateCheck().

Fixes nextcloud#9704

Signed-off-by: Pedro Lino <pmdbl@sapo.pt>
@mgallien mgallien force-pushed the fix/backport-9406-sparkle-auto-update-check branch from 3957536 to 476f1b0 Compare March 31, 2026 08:55
@github-actions
Copy link
Copy Markdown

Artifact containing the AppImage: nextcloud-appimage-pr-9705.zip

Digest: sha256:f060ba7106ec2a0689af758ece3eaba424733e8264f81c03bb7d9df37cba89e8

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants