Repository navigation
docs(directories): document aw-server-rust --dbpath and its aw-qt caveat - #227
Merged
ErikBjare merged 2 commits intoNov 25, 2026
Merged
Conversation
The page names the data directories but never says the database can live elsewhere, which is the first question from users keeping their data on an external drive. Document the CLI flag, that it is not a config/UI setting, that aw-qt cannot pass it (so autostart_modules needs editing), the single-writer caveat, and that aw-server (Python) has no equivalent. Git-Session-Id: 5458086f-339f-47ce-8bdd-5ff30f715ac0
Contributor
Author
Review guide (auto-posted)Structured warm-up for reviewers — what changed, what to run, where to look. Key files
Suggested verification
Known risks / watch points
Suggested review focus
Generated by |
Contributor
[Low impact] The documentation appears safe to merge. SummaryAdds instructions for keeping the
Both previous threads are addressed: the steps now remove whichever server is enabled, and the new subsection explains how to preserve existing history. No new actionable issues were found. Reviews (2) · Last reviewed commit: "docs(directories): fix --dbpath usage an..." · Reviewed by Greptile |
--dbpath takes the database file, not a directory: with the released v0.14.3 binary a directory path (or a missing parent folder) makes the datastore worker panic. The classic app starts the Python aw-server by default, so remove whichever server is listed in autostart_modules, and explain how to bring existing history to the new location. Git-Session-Id: 3b28c971-364c-567b-afa9-b80e3d39b9bd
Contributor
Author
|
@greptileai review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The page names the data directories but never says the database can live somewhere else. A user asked exactly that on the forum (keeping ActivityWatch data on an external drive shared between computers), and the only public mention of the flag is the v0.11.0 changelog entry.
This adds a "Changing the database location" section to
src/directories.rstcovering:aw-server-rust --dbpath <file>with an example. The value is the database file, and its folder must already exist.AWConfighas no such field) and not passed byaw-qt(aw_qt/manager.pystarts modules with no extra args). The Tauri app embeds the server and has no equivalent.autostart_modules(the default is the Pythonaw-server), then startaw-server-rustby hand. The tray Modules menu only stops a server for the session.sqlite.db(plus-wal/-shm) fromaw-server-rust, or use--import-legacy(v0.14.1+) for Pythonaw-serverhistory. Categories and other web UI settings are not imported.syncingis the supported way to combine per-machine data.aw-server(Python) has no--dbpath, only--profile.The first revision said
--dbpath <directory>, which was wrong.Verified against the sources pinned by v0.14.3 (aw-server-rust
113752dd, aw-qtc31456c1) and by running the released v0.14.3 Linux binaries in a throwaway HOME:--dbpathpointing at an existing directory--dbpathin a missing folder--dbpathto a new file--import-legacysqlite.db*+--dbpathThe page builds with
sphinx-build -W -n(with stubs for the linked pages).