From aa42f7a0202d5d68b8f6519bea2c9a6e0eedfcee Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 21 Feb 2026 09:45:21 -0800 Subject: [PATCH] Probe agent & status service as soon as we launch it (#2852) Hopefully this fixes potential issues like #2851 for the last time. --- Sparkle/SPUInstallerDriver.m | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Sparkle/SPUInstallerDriver.m b/Sparkle/SPUInstallerDriver.m index 809a90c6..323240f7 100644 --- a/Sparkle/SPUInstallerDriver.m +++ b/Sparkle/SPUInstallerDriver.m @@ -26,6 +26,7 @@ #import "SPUDownloadedUpdate.h" #import "SPUInstallationType.h" #import "SUConstants.h" +#import "SPUProbeInstallStatus.h" #include "AppKitPrevention.h" @@ -459,6 +460,8 @@ NSString *hostBundlePath = _host.bundle.bundlePath; assert(hostBundlePath != nil); + NSString *hostBundleIdentifier = _host.bundle.bundleIdentifier; + NSString *installationType = _updateItem.installationType; assert(installationType != nil); @@ -484,7 +487,20 @@ self->_systemDomain = systemDomain; [self setUpConnection]; [self sendInstallationData]; - completionHandler(nil); + + // Send a probe/ping to the status service, which should boost/prioritize its startup + if (hostBundleIdentifier != nil) { + [SPUProbeInstallStatus probeInstallerInProgressForHostBundleIdentifier:hostBundleIdentifier completion:^(BOOL stausServiceIsRunning) { + if (!stausServiceIsRunning) { + SULog(SULogLevelError, @"Error: failed to probe status service for %@ from the framework", hostBundleIdentifier); + } + + completionHandler(nil); + }]; + } else { + completionHandler(nil); + } + break; } });