mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
fix: fixed Fan helper installation process by using System over domain for launchd (#3008)
This commit is contained in:
@@ -993,7 +993,7 @@ public class SMCHelper {
|
||||
}
|
||||
|
||||
var error: Unmanaged<CFError>?
|
||||
if SMJobBless(kSMDomainUserLaunchd, "eu.exelban.Stats.SMC.Helper" as CFString, authRef, &error) == false {
|
||||
if SMJobBless(kSMDomainSystemLaunchd, "eu.exelban.Stats.SMC.Helper" as CFString, authRef, &error) == false {
|
||||
let blessError = error!.takeRetainedValue() as Error
|
||||
print("Error while installing the Helper: \(blessError.localizedDescription)")
|
||||
completion(false)
|
||||
|
||||
Reference in New Issue
Block a user