diff --git a/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift b/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift index 7c83f3b..bcbe28f 100644 --- a/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift +++ b/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift @@ -13,7 +13,7 @@ class MacAppStoreUpdateDetector { wg_log(.debug, message: "aevt/quit Apple event received from executable: \(executablePath)") if executablePath.hasPrefix("/System/Library/") { let executableName = URL(fileURLWithPath: executablePath, isDirectory: false).lastPathComponent - return executableName == "com.apple.CommerceKit.StoreAEService" + return executableName.hasPrefix("com.apple.") && executableName.hasSuffix(".StoreAEService") } return false }