Skip to content

Commit

Permalink
doc: update comment 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
kentbetita committed Feb 22, 2024
1 parent 351892e commit d6095cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ActiveWinCLI/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6095cf

Please sign in to comment.