Skip to content

docs: add post-install next steps and stop-before-update instructions - #190

Merged
ErikBjare merged 3 commits into
ActivityWatch:masterfrom
TimeToBuildBob:docs/postinstall-and-safe-update-94-92
Nov 24, 2026
Merged

ErikBjare merged 3 commits into
ActivityWatch:masterfrom
TimeToBuildBob:docs/postinstall-and-safe-update-94-92

Conversation

@TimeToBuildBob

@TimeToBuildBob TimeToBuildBob commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #94 and #92 (and notes that #170 is fixed on live).

#94 — updating.rst told users to "replace the files" but never said stop ActivityWatch first. Overwriting the running aw-server binary is exactly the failure mode users hit. The new Stop ActivityWatch before updating section covers every supported way to start it: aw-qt tray Quit, pkill -f aw-qt/aw-server for Linux, macOS menu-bar Quit / killall, and Windows tray Quit / Task Manager.

#92 — getting-started.rst stopped at install. The new Next steps after installing section points users at the four high-leverage things to do next:

  1. Install the browser extension (aw-watcher-web) — Chrome/Edge/Brave and Firefox store links.
  2. Install an editor watcher — link into the editor-watchers section of watchers.rst.
  3. Set up categories — via the web UI Settings → Categorization panel, linking to the categorization feature page.
  4. Where data lives — back up / wipe-and-restart note, link to directories.rst.

#170 — verified on the live site that the fix is in production: docs.activitywatch.net/en/latest/search.html now loads _static/jquery.js and searchindex.js returns HTTP 200 with content; the sphinxcontrib-jquery extension is doing its job. No code change needed, just a verification note.

Why

Both #94 and #92 are 2020-vintage issues that have stayed open because the bar is "small but multi-section" docs work that's easy to defer. New users hit both within their first hour.

Test plan

  • make html (via uvx --with sphinx + extensions) builds with no new warnings on either modified file. (The pre-existing 124 warnings are all aw-core/aw-server/aw-client autodoc imports and autosectionlabel collisions from headings that already exist in master — unrelated.)
  • Live docs.activitywatch.net search verified: jQuery loads, searchindex.js serves.
  • Visual: I'll attach screenshots of the rendered getting-started.html and updating.html shortly.

@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

@greptileai review

@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Addressed in b4ae17b: Chrome Web Store id corrected to nglaklhklhcoonedhgnpgddginnjdadi (as in the aw-watcher-web README), the categories.yaml/configuration bullet removed (categories are set in Settings → Categorization, now linking to the categorization page), and the invented activitywatch.target systemd tab dropped. PR body updated to match. The stop-before-update steps for Linux now rely on pkill only.

Closes ActivityWatch#94 (updating.rst should explain how to stop
ActivityWatch before replacing files) and ActivityWatch#92
(getting-started should mention what to do after installing).

- updating.rst: add 'Stop ActivityWatch before updating' section covering
  aw-qt tray Quit, systemd --user stop, pkill, macOS menu bar / killall,
  and Windows Task Manager, before the existing macOS-only note.

- getting-started.rst: add 'Next steps after installing' section covering
  the browser extension (with store links), editor watchers (link to
  watchers.rst), setting up categories (web UI + categories.yaml), and
  where data lives (link to directories.rst).

- docs#170 verified fixed on live site: docs.activitywatch.net search.html
  loads jquery.js and searchindex.js returns 200; the sphinxcontrib-jquery
  fix is in production.

Git-Session-Id: c8ba
…emd target references

Git-Session-Id: 827e7d6a-28fa-5a41-9c3c-afa15a039b4c
…ailure wording

Git-Session-Id: b9c03d55-275e-466b-9930-22dc06ea4a45
@TimeToBuildBob
TimeToBuildBob force-pushed the docs/postinstall-and-safe-update-94-92 branch from b4ae17b to bcf4452 Compare November 24, 2026 07:56
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Merge-ready. Closes #94 (stop ActivityWatch before updating) and #92 (next steps after installing). Rebased on master today.
Evidence: checked against aw-watcher-web source. Today's commit drops two unverified claims (a "badge colour" indicator and "reload tabs") and replaces them with what the popup actually shows (enabled + connected) plus Firefox's consent gate. The update-failure wording is corrected: Windows locks running executables.
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 'Next steps after installing' section to getting-started.rst covering the browser extension, editor watchers, category setup, and the data directory, and adds a 'Stop ActivityWatch before updating' section to updating.rst with tabbed stop instructions per platform plus a data-preservation note. No code changes.

Safe to merge — no P0/P1 findings

Confidence 5/5

✅ No thread-worthy findings. Advisory notes follow; they are retained without opening review threads.

1 out-of-scope finding (outside this PR's changed files)

Each item here is an observation about the PR as a whole — informational only, not scored.

⚠️ P2 medium — PR-level

The PR description states it 'notes that #170 is fixed on live' and includes a 'verification note' as part of the changes, but the diff adds no such note to either changed file. The description's test plan mentions verifying the live search page, but no text was added to the documentation that informs users of the fix. Readers of the updated pages have no indication that the search issue was resolved, so the PR's stated purpose of documenting that fix is not fulfilled. This is a mismatch between the PR description and the submitted diff, a contract violation against the stated scope.

Either add a short paragraph or note in one of the files referencing the search fix, or remove the claim from the PR description.

How this was verified: Searched both changed files (src/getting-started.rst and src/updating.rst) in the diff and full contents; there is no mention of #170 or the search fix anywhere.

3 advisory findings (summary-only, not scored)

These P2 guard, heuristic, trade-off, or documentation claims are retained for judgment without opening review threads.

⚠️ P2 medium — src/updating.rst:29

The Linux group-tab instructs pkill -f aw-qt and pkill -f aw-server. pkill -f matches the substring against every process's full command line, not the process name, so any unrelated tool whose argv contains 'aw-qt' or 'aw-server' is SIGTERM'd: an editor open on ~/.config/aw-qt/..., a file manager browsing an aw-server source checkout, or a shell whose CWD appears in its command line. The consequence is that the instruction kills user processes that are not ActivityWatch, and the sibling verification pgrep -f aw-server returning nothing then sees those survivors and reports a false positive, prompting repeated kills. Anchor the pattern to the installation path (e.g. pkill -f '/opt/ActivityWatch/aw-server') or review pgrep -af aw-server output before killing, so only ActivityWatch processes are matched.

killall ActivityWatch
          killall aw-qt
          killall aw-server

How this was verified: Compared the Linux (line 29-30) and Windows (line 43) tabs which both explicitly include aw-server; the macOS tab only lists ActivityWatch and aw-qt. Checked that the server is referenced as a separate process in line 15.

⚠️ P2 medium — src/getting-started.rst:79

The claim that without the browser extension your browsing history shows up as plain Firefox is inaccurate. The default aw-watcher-window records the active window title, which for a browser is typically the title of the active tab (e.g. 'Stack Overflow - Google Chrome'). So users already get the page title in their data; the extension adds the URL and per-tab event granularity, not the title. This misleads users into thinking the extension is mandatory to see any page-specific detail, contradicting actual behavior and potentially causing confusion when they observe tab titles in the dashboard without the extension. The sentence should be reworded to say the extension adds the URL and more detailed per-tab history rather than implying no detail exists otherwise.

Without one, coding time may show only the editor's window title (often the file name plus the binary name) and lacks structured file, project, or language metadata.

How this was verified: Checked the existing description of default watchers earlier in the same file (line 79) which says they track the active application, and noted that aw-watcher-window records window titles on supported platforms; no code check possible for docs-only change.

⚠️ P2 medium — src/updating.rst:21

The new 'Stop ActivityWatch before updating' section provides stopping instructions for aw-qt, Linux terminal commands, macOS menu-bar Quit, and Windows Task Manager, but does not cover the newer aw-tauri distribution that is described earlier in getting-started.rst (lines 51 and 116). Users who installed the Tauri build and follow this section have no guidance for stopping aw-tauri; they might attempt to replace files while aw-server-rust is running, risking a half-updated install as the section itself warns against. The PR description claims to cover 'every supported way to start it', but aw-tauri is absent from all four tabs, leaving a supported distribution unaddressed.

Add a dedicated aw-tauri tab (or extend the existing tabs) with corresponding quit/pkill instructions, e.g. 'Right-click the aw-tauri tray icon and choose Quit' or 'pkill -f aw-tauri'.

How this was verified: Read the full contents of updating.rst; no tab or paragraph mentions aw-tauri, while getting-started.rst references both aw-qt and aw-tauri as desktop apps with tray icons.

Files changed (2) — the diff as I read it
  • src/getting-started.rst — Adds four subsections after the Usage notes: installing aw-watcher-web, installing an editor watcher, setting up categories, and where data lives, each linking to existing doc pages.
  • src/updating.rst — Adds a 'Stop ActivityWatch before updating' section with group-tabs (aw-qt, Linux, macOS, Windows) giving stop commands and a post-update restart note.

Reviewed bcf44520cd6c · openrouter/deepseek/deepseek-v4-flash-0731 · llm engine · 390s · about this reviewer

Maintainer commands

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

@ErikBjare
ErikBjare merged commit cdf105f into ActivityWatch:master Nov 24, 2026
1 check passed
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.

Documentation about updating should contain information how to stop application

2 participants