mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-15 07:34:47 -04:00
Fix broken XPC Service retrieval
This commit is contained in:
parent
997a79e330
commit
c49b5a64ee
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>BuildHash</key>
|
<key>BuildHash</key>
|
||||||
<string>c0b5081a07641626d905126d1bf189fb086daf024e6ef6728c64f2dbb7622ac0</string>
|
<string>631381272a839c41efa70afa56e8d6e05a0bdbc167d07ecae792ed338ac0a353</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.ninxsoft.mist.helper</string>
|
<string>com.ninxsoft.mist.helper</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
|
|
@ -54,7 +54,7 @@ guard getppid() == 1 else {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// XPCServer used to monitor incoming requests
|
/// 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.registerRoute(XPCRoute.commandRoute, handler: HelperToolCommandRunner.run(_:))
|
||||||
server.setErrorHandler { error in
|
server.setErrorHandler { error in
|
||||||
if case .connectionInvalid = error {
|
if case .connectionInvalid = error {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
extension XPCRoute {
|
extension XPCRoute {
|
||||||
static let commandRoute: XPCRouteWithMessageWithReply<HelperToolCommandRequest, HelperToolCommandResponse> = XPCRoute.named("process")
|
static let commandRoute: XPCRouteWithMessageWithReply<HelperToolCommandRequest, HelperToolCommandResponse> = XPCRoute.named("com.ninxsoft.mist.helper")
|
||||||
.withMessageType(HelperToolCommandRequest.self)
|
.withMessageType(HelperToolCommandRequest.self)
|
||||||
.withReplyType(HelperToolCommandResponse.self)
|
.withReplyType(HelperToolCommandResponse.self)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue