Skip to content

docs(linux): add systemd user-service autostart guide - #189

Open
TimeToBuildBob wants to merge 4 commits into
ActivityWatch:masterfrom
TimeToBuildBob:docs/linux-systemd-user-services
Open

TimeToBuildBob wants to merge 4 commits into
ActivityWatch:masterfrom
TimeToBuildBob:docs/linux-systemd-user-services

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

Summary

  • add tested systemd user units for the Rust server and default X11 watchers
  • add a GNOME/Wayland awatcher-bundle unit that waits for the real Focused Window D-Bus interface instead of sleeping a fixed number of seconds
  • link the guide from Linux autostart, watcher, GNOME, and top-level navigation pages

Verification

  • systemd-analyze --user verify passes for the server and Wayland unit syntax
  • live isolated-port test on Linux: aw-server-rust, aw-watcher-afk, and aw-watcher-window started on port 5660, created both watcher buckets, restarted successfully, and stopped cleanly
  • poetry run sphinx-build -b html src _build/html succeeds (four existing asset/theme warnings)
  • strict Sphinx build reaches the new page without a new warning; the repository's existing warning backlog still makes -W fail

Documents ActivityWatch/activitywatch#1191, ActivityWatch/activitywatch#1218, and ActivityWatch/activitywatch#1105. Complements the Wayland watcher clarification in #146.

@TimeToBuildBob
TimeToBuildBob force-pushed the docs/linux-systemd-user-services branch from f69145f to 5ecae02 Compare October 9, 2026 00:44
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

@greptileai review

Comment thread src/index.rst Resolved
@TimeToBuildBob
TimeToBuildBob force-pushed the docs/linux-systemd-user-services branch from b74d649 to b109608 Compare November 24, 2026 07:53
Git-Session-Id: b9c03d55-275e-466b-9930-22dc06ea4a45
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Merge-ready. Adds a systemd user-service guide (Rust server plus X11 watchers, and a GNOME/Wayland awatcher unit that waits for the Focused Window D-Bus interface), nested under Getting started → Autostart as you asked. Rebased on master today, which dropped the duplicate apt-get workflow commit already landed in #211.
Evidence: units pass systemd-analyze --user verify. Type=notify is valid because aw-server-rust has sent sd_notify READY since v0.13.2. New note: X11 watchers need DISPLAY/XAUTHORITY in the user manager.
Risk: docs only.

@ErikBjare

Copy link
Copy Markdown
Member

@TimeToBuildBob review

@TimeToBuildBob

TimeToBuildBob commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 AI code review

Adds a new systemd-autostart guide under src/systemd-autostart.rst, links it from the Linux autostart section, the GNOME/Wayland page, and the watchers page, and adds a hidden toctree entry in getting-started.rst. The guide provides X11 user service units for aw-server-rust and the default watchers, plus a GNOME/Wayland unit that polls the Focused Window D-Bus interface before launching awatcher.

Safe to merge — no P0/P1 findings

Confidence 5/5

✅ No findings. The diff looks correct to me on this pass.

Files changed (5) — the diff as I read it
  • src/getting-started.rst — Adds a hidden toctree for systemd-autostart and a paragraph pointing Linux systemd users to the new guide.
  • src/index.rst — Adds a trailing newline after the search index entry.
  • src/running-on-gnome.rst — Adds a paragraph recommending the new systemd setup for GNOME/Wayland because it waits for the D-Bus interface.
  • src/systemd-autostart.rst — New guide with X11 server/watcher unit files, a GNOME/Wayland awatcher unit, validation/start commands, and troubleshooting.
  • src/watchers.rst — Adds a pointer to the systemd-autostart guide for X11 and GNOME/Wayland setups.
Previous review passes
commit score findings engine when
18d268c46b34 3/5 2 llm 2026-11-24 10:30 UTC

Reviewed d7628d93cea6 · openrouter/deepseek/deepseek-v4-flash-0731 · llm engine · 80s · about this reviewer

Maintainer commands

@TimeToBuildBob review (own line) — fresh review · @TimeToBuildBob fix — a worker acts on the findings. Once per comment; 👀 = received.

Comment thread src/systemd-autostart.rst Resolved
Comment thread src/systemd-autostart.rst Resolved
Git-Session-Id: 2e1756a6-47e6-480b-9da0-363aac57d2ba
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

CI-green and mergeable — waiting only on a maintainer click.

This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants