From d6095cfbfa749b660777731c5032b27ba8eb16c5 Mon Sep 17 00:00:00 2001 From: kentbetita Date: Thu, 22 Feb 2024 17:58:58 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20update=20comment=20=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/ActiveWinCLI/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ActiveWinCLI/main.swift b/Sources/ActiveWinCLI/main.swift index 9a72290..33104e7 100644 --- a/Sources/ActiveWinCLI/main.swift +++ b/Sources/ActiveWinCLI/main.swift @@ -88,7 +88,7 @@ let disableAccessibilityPermission = CommandLine.arguments.contains("--no-access 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. +// Show accessibility permission prompt if needed. Required to get the URL of the active tab in browsers. if !disableAccessibilityPermission && !AXIsProcessTrustedWithOptions(["AXTrustedCheckOptionPrompt": true] as CFDictionary) { print("active-win requires the accessibility permission in “System Settings › Privacy & Security › Accessibility”.") exit(1)