Skip to content
ActivityWatchPublic

About

Tray icon that manages ActivityWatch processes, built with Qt.

Topics

Resources

Stars

34 stars

Watchers

4 watching

Forks

Repository files navigation

aw-qt

GitHub Actions badge Code style: black Typechecking: Mypy

A service manager and tray icon managing aw-server and watchers, built with Qt.

Use --profile NAME to run an isolated named instance. Enabling Start at login from that instance's tray registers the same profile-specific launch command.

When using aw-server-rust with opt-in [auth].api_key, Open Dashboard and a tray double-click pass the matching profile's key to the web UI's token bootstrap. The key is read when opening the dashboard, not stored in the tray URL. The Rust server must be the only started server backend, be a live child owned by this launcher (not a listener adopted through the public health probe), and its configured loopback port must match the tray destination. Authenticated URLs use the configured numeric address (127.0.0.1 or [::1]), not localhost, to avoid sending the key to another address family's listener on the same port. For authenticated children the launcher pins this address and port with command line overrides and records the profile/endpoint as launch identity. Changing the address or port, or enabling auth after startup, requires restarting the server before handoff; key-only edits at the same endpoint are still read at click time. Credential handoff additionally requires the pinned numeric listener to answer GET /api/0/info as ActivityWatch (HTTP 200 with a hostname field). The probe does not send the API key. A non-AW occupant (for example HTTP 404) or a child that has not yet bound keeps the tokenless URL. The credential-free probe has a 0.2-second total network deadline (including HTTP status, headers and chunk framing) and a 4KiB decoded-body limit; invalid or incomplete responses fail closed. This public response is a readiness check, not proof of socket ownership: another listener returning the same public JSON on the pinned endpoint can still receive the key while the child is initializing. Stronger listener authentication requires a separate design; do not rely on this handoff against hostile local users. Missing or invalid configuration leaves the dashboard URL unchanged. Hostname bind addresses are not eligible for key handoff. The API Browser is not token-bootstrapped. This does not enable authentication automatically or make separate ports a security boundary between OS users. Treat a dashboard bootstrap URL as a secret: it is briefly passed to the OS/browser opener and can be visible in process arguments before the web UI removes it from the address bar.

For instructions how to build, see Makefile.

About

Tray icon that manages ActivityWatch processes, built with Qt.

Topics

Resources

Stars

34 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages