From c49b5a64eeb67e0b216b963b7a6857ba6c80f8cf Mon Sep 17 00:00:00 2001 From: Nindi Gill Date: Wed, 21 Sep 2022 20:26:09 +1000 Subject: [PATCH] Fix broken XPC Service retrieval --- MistHelperTool/Info.plist | 2 +- MistHelperTool/main.swift | 2 +- Shared/XPCRoute+Extension.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MistHelperTool/Info.plist b/MistHelperTool/Info.plist index 042e844..f9f3255 100644 --- a/MistHelperTool/Info.plist +++ b/MistHelperTool/Info.plist @@ -3,7 +3,7 @@ BuildHash - c0b5081a07641626d905126d1bf189fb086daf024e6ef6728c64f2dbb7622ac0 + 631381272a839c41efa70afa56e8d6e05a0bdbc167d07ecae792ed338ac0a353 CFBundleIdentifier com.ninxsoft.mist.helper CFBundleInfoDictionaryVersion diff --git a/MistHelperTool/main.swift b/MistHelperTool/main.swift index ee55bbd..fd34725 100644 --- a/MistHelperTool/main.swift +++ b/MistHelperTool/main.swift @@ -54,7 +54,7 @@ guard getppid() == 1 else { } /// XPCServer used to monitor incoming requests -let server: XPCServer = try XPCServer.forThisXPCService() +let server: XPCServer = try XPCServer.forMachService() server.registerRoute(XPCRoute.commandRoute, handler: HelperToolCommandRunner.run(_:)) server.setErrorHandler { error in if case .connectionInvalid = error { diff --git a/Shared/XPCRoute+Extension.swift b/Shared/XPCRoute+Extension.swift index 563b558..c2ccad5 100644 --- a/Shared/XPCRoute+Extension.swift +++ b/Shared/XPCRoute+Extension.swift @@ -9,7 +9,7 @@ import Foundation import SecureXPC extension XPCRoute { - static let commandRoute: XPCRouteWithMessageWithReply = XPCRoute.named("process") + static let commandRoute: XPCRouteWithMessageWithReply = XPCRoute.named("com.ninxsoft.mist.helper") .withMessageType(HelperToolCommandRequest.self) .withReplyType(HelperToolCommandResponse.self) }