macos: the approval dialog is now forever

This commit is contained in:
Mitchell Hashimoto
2025-06-21 06:46:33 -07:00
parent 020976bf88
commit 296f340ff4
3 changed files with 75 additions and 24 deletions

View File

@@ -46,8 +46,9 @@ func requestIntentPermission() async -> Bool {
PermissionRequest.show(
"org.mitchellh.ghostty.shortcutsPermission",
message: "Allow Shortcuts to interact with Ghostty for the next 10 minutes?",
allowDuration: .seconds(600),
message: "Allow Shortcuts to interact with Ghostty?",
allowDuration: .forever,
rememberDuration: nil,
) { response in
continuation.resume(returning: response)
}