Skip to content

Commit

Permalink
chore: update condition 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
kentbetita committed Feb 19, 2024
1 parent 97aca0a commit 3f4ccca
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 @@ -87,7 +87,7 @@ let disableScreenRecordingPermission = CommandLine.arguments.contains("--no-scre
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) {
if !disableScreenRecordingPermission && !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 3f4ccca

Please sign in to comment.