From e95c707009594931724e85f68c917e646a0a28fb Mon Sep 17 00:00:00 2001 From: Toxblh Date: Fri, 29 Jun 2018 15:07:59 +0100 Subject: [PATCH] fix for 10.14 --- MTMR/AppDelegate.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MTMR/AppDelegate.swift b/MTMR/AppDelegate.swift index 0f923de..62dd4a8 100644 --- a/MTMR/AppDelegate.swift +++ b/MTMR/AppDelegate.swift @@ -14,6 +14,8 @@ class AppDelegate: NSObject, NSApplicationDelegate { private var fileSystemSource: DispatchSourceFileSystemObject? func applicationDidFinishLaunching(_ aNotification: Notification) { + let _ = AXIsProcessTrustedWithOptions([kAXTrustedCheckOptionPrompt.takeRetainedValue() as NSString: true] as NSDictionary) + TouchBarController.shared.setupControlStripPresence() if let button = statusItem.button {