Skip to content

Commit 5c3edc8

Browse files
committed
Support prompt for permission
1 parent 87ae2d7 commit 5c3edc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ExtensionService/AppDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate {
3333
_ = GraphicalUserInterfaceController.shared
3434
_ = RealtimeSuggestionController.shared
3535
_ = XcodeInspector.shared
36-
AXIsProcessTrustedWithOptions(nil)
36+
AXIsProcessTrustedWithOptions([
37+
kAXTrustedCheckOptionPrompt.takeRetainedValue() as NSString: true
38+
] as CFDictionary)
3739
setupQuitOnUpdate()
3840
setupQuitOnUserTerminated()
3941
xpcListener = setupXPCListener()

0 commit comments

Comments
 (0)