[macos] Swift helper never appears in the Accessibility list on its own; users must manually dig out the helper binary

Open
#149 0 comments 0 reactions 0 assignees View on GitHub

@StreamOfRon is already working on this.

Since Sep 27, 2026.

  • #150 by @StreamOfRon — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, python, swift

Research direction

Start by locating the macOS helper build configuration and the Python permission alert, then inspect how the helper is packaged and invoked. Verify the helper embeds the named bundle metadata, logs its identity once per launch, and presents clearer guidance; done means macOS lists “ActivityWatch Window Helper” without manual navigation.

Written by the indexing model from the issue text.

Description

Describe the bug

When aw-watcher-window-macos requests Accessibility access, macOS does not add a usable entry for it to System Settings > Privacy & Security > Device control and data access (macOS 26+) / Accessibility. The user must click +, navigate into the app bundle's hidden Contents/Frameworks/aw_watcher_window/ directory, and select the helper binary by hand.

Related: #147 (repeated prompt loop). Even once prompting is fixed to once-per-launch, the grant flow still requires Finder spelunking.

Root cause

The helper is a bare unix executable with no bundle identity (adhoc identifier along the lines of aw-watcher-window-macos-5555…, no Info.plist), so TCC has nothing clean to list when the prompt flow runs.

Expected behavior

Prompting should produce a named entry ("ActivityWatch Window Helper") in the permissions list automatically, so the user only has to toggle it — no manual navigation to the helper binary.

Proposed fix

Embed an Info.plist (CFBundleIdentifier net.activitywatch.aw-watcher-window-macos, CFBundleName) into the helper binary at build time (__TEXT,__info_plist section), plus a one-time log naming the helper and clearer guidance copy in the Python permission alert.

Caveats (out of scope)

  • Nothing can self-grant TCC: the user still approves once; that is Apple's floor.
  • On adhoc local builds, grants are keyed by cdhash, so rebuilding still invalidates them. Only a Developer ID signature gives persistence across rebuilds.
Dominant language
Python
Stars
133
Forks
92
Avg merge
5d 3h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-watcher-window

All issues in ActivityWatch/aw-watcher-window

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.