syncthing / syncthing-macos

Official frugal and native macOS Syncthing application bundle
https://syncthing.net
MIT License
2.67k stars 141 forks source link

Auto-update can not be disabled #182

Open xor-gate opened 2 years ago

xor-gate commented 2 years ago

Currently the auto-update cannot be opt-out and is always enabled. We should be able to disable it with a checkbox in the preferences dialog.

This is a followup of #181

jarrettgilliam commented 1 year ago

Looking forward to this feature! I update Syncthing using homebrew and would like to avoid the occasional nag message.

xor-gate commented 1 year ago

As a quick fix you probably can set the SUEnableAutomaticChecks config variable to 0 from the commandline. And then restart Syncthing (tray icon bundle):

jerry@coconut ~ % defaults write com.github.xor-gate.syncthing-macosx SUEnableAutomaticChecks 0
jerry@coconut ~ % defaults read com.github.xor-gate.syncthing-macosx
{
    ApiKey = ~~~;
    Arguments = "";
    Executable = "/Applications/Syncthing.app/Contents/Resources/syncthing/syncthing";
    "NSStatusItem Visible Item-0" = 1;
    "NSWindow Frame SUUpdateAlert" = "714 569 620 398 0 0 2048 1127 ";
    SUEnableAutomaticChecks = 0;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2023-01-29 07:56:59 +0000";
    SUSendProfileInfo = 0;
    SUUpdateGroupIdentifier = 4133451710;
    SUUpdateRelaunchingMarker = 0;
    StartAtLogin = 1;
    URI = "http://127.0.0.1:8384";
}

Fixing it from the GUI is not easy. I'm not a GUI guy so please try this out.

jarrettgilliam commented 1 year ago

I'll give that a shot. Thanks!

garrett-bane-by commented 1 year ago

I use syncthing on multiple headless Mac Minis including automation that relies on screenshots and looking for images on the screen. When the auto-update prompt comes up. it prevents some of those automated tasks from completing successfully. I will try this fix and report back after the next syncthing update.

metametapod commented 1 month ago

FYI, this can also be applied globally to disable Sparkle system-wide:

defaults write -g SUEnableAutomaticChecks -bool NO

https://github.com/sparkle-project/Sparkle/issues/130#issuecomment-996402770