Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sindresorhus/get-windows
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.2.0
Choose a base ref
...
head repository: sindresorhus/get-windows
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.2.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 2, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    34659a0 View commit details
  2. 8.2.1

    sindresorhus committed Mar 2, 2024
    Copy the full SHA
    1de0ea8 View commit details
Showing with 6 additions and 7 deletions.
  1. +5 −6 Sources/ActiveWinCLI/main.swift
  2. +1 −1 package.json
11 changes: 5 additions & 6 deletions Sources/ActiveWinCLI/main.swift
Original file line number Diff line number Diff line change
@@ -89,12 +89,11 @@ 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 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)
if !disableAccessibilityPermission {
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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "active-win",
"version": "8.2.0",
"version": "8.2.1",
"description": "Get metadata about the active window (title, id, bounds, owner, URL, etc)",
"license": "MIT",
"repository": {