From 349914294ea1b93967210fabe1d9cc309a04c811 Mon Sep 17 00:00:00 2001 From: kentbetita Date: Thu, 22 Feb 2024 12:27:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20accessibility=20prompt=20?= =?UTF-8?q?=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/ActiveWinCLI/main.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Sources/ActiveWinCLI/main.swift b/Sources/ActiveWinCLI/main.swift index fa260f0..3803731 100644 --- a/Sources/ActiveWinCLI/main.swift +++ b/Sources/ActiveWinCLI/main.swift @@ -86,12 +86,6 @@ func getWindowInformation(window: [String: Any], windowOwnerPID: pid_t) -> [Stri let disableScreenRecordingPermission = CommandLine.arguments.contains("--no-screen-recording-permission") let enableOpenWindowsList = CommandLine.arguments.contains("--open-windows-list") -// Show accessibility permission prompt if needed. Required to get the complete window title. -if !AXIsProcessTrustedWithOptions(["AXTrustedCheckOptionPrompt": true] as CFDictionary) { - print("active-win requires the accessibility permission in “System Settings › Privacy & Security › Accessibility”.") - exit(1) -} - // Show screen recording permission prompt if needed. Required to get the complete window title. if !disableScreenRecordingPermission && !hasScreenRecordingPermission() { print("active-win requires the screen recording permission in “System Settings › Privacy & Security › Screen Recording”.")