|
1 | 1 | Directories |
2 | 2 | =========== |
3 | 3 |
|
4 | | -Where things get stored depends on the platform you're using. All paths should follow standard directories on their platforms, and to accomplish this we use `appdirs <https://pypi.org/project/appdirs/>`_ in Python code and `appdirs-rs <https://crates.io/crates/appdirs/>`_ in Rust code. |
| 4 | +Where things get stored depends on the platform you're using. All paths should follow standard directories on their platforms, and to accomplish this we use `appdirs <https://pypi.org/project/appdirs/>`_ in Python code and the `dirs <https://crates.io/crates/dirs/>`_ crate in Rust code. |
| 5 | + |
| 6 | +Each ActivityWatch component stores its data in a subdirectory named after itself. For example, ``aw-server-rust`` stores its database in the data directory under ``aw-server-rust/``, and ``aw-watcher-afk`` stores its config under ``aw-watcher-afk/``. |
| 7 | + |
| 8 | +Since v0.12, the default server is ``aw-server-rust``, so the paths below use that as the example. |
5 | 9 |
|
6 | 10 | .. _data-directory: |
7 | 11 |
|
8 | 12 | Data |
9 | 13 | ---- |
10 | 14 |
|
11 | | -- Windows: ``C:\Users\<USER>\AppData\Local\activitywatch\activitywatch`` |
12 | | -- macOS: ``~/Library/Application\ Support/activitywatch`` |
13 | | -- Linux: ``~/.local/share/activitywatch`` |
| 15 | +This is where the SQLite database and other persistent data is stored. |
| 16 | + |
| 17 | +- Windows: ``C:\Users\<USER>\AppData\Local\activitywatch\aw-server-rust`` |
| 18 | +- macOS: ``~/Library/Application Support/activitywatch/aw-server-rust`` |
| 19 | +- Linux: ``~/.local/share/activitywatch/aw-server-rust`` |
14 | 20 |
|
15 | 21 | .. _config-directory: |
16 | 22 |
|
17 | 23 | Config |
18 | 24 | ------ |
19 | 25 |
|
| 26 | +Configuration files for each component. |
| 27 | + |
| 28 | +- Windows: ``C:\Users\<USER>\AppData\Local\activitywatch\aw-server-rust`` |
| 29 | +- macOS: ``~/Library/Application Support/activitywatch/aw-server-rust`` |
| 30 | +- Linux: ``~/.config/activitywatch/aw-server-rust``, or the path defined by the :code:`$XDG_CONFIG_HOME` environment variable. |
20 | 31 |
|
21 | | -- Windows: ``%LocalAppData%\activitywatch\activitywatch`` |
22 | | -- macOS: ``~/Library/Application\ Support/activitywatch/`` |
23 | | -- Linux: ``~/.config/activitywatch``, or the path defined by the :code:`$XDG_CONFIG_HOME` environment variable. |
| 32 | +Other components have their own config directories, e.g. ``aw-watcher-afk``, ``aw-watcher-window``. |
24 | 33 |
|
25 | 34 | .. _logs-directory: |
26 | 35 |
|
27 | 36 | Logs |
28 | 37 | ---- |
29 | 38 |
|
30 | | -- Windows: ``C:\Users\<USER>\AppData\Local\activitywatch\activitywatch`` |
31 | | -- macOS: ``~/Library/Logs/activitywatch`` |
32 | | -- Linux: ``~/.cache/activitywatch/log`` |
| 39 | +- Windows: ``C:\Users\<USER>\AppData\Local\activitywatch\aw-server-rust\logs`` |
| 40 | +- macOS: ``~/Library/Logs/activitywatch/aw-server-rust`` |
| 41 | +- Linux: ``~/.cache/activitywatch/log/aw-server-rust`` |
33 | 42 |
|
34 | 43 | .. _cache-directory: |
35 | 44 |
|
36 | 45 | Cache |
37 | 46 | ----- |
38 | 47 |
|
39 | | -- Windows: TODO |
40 | | -- macOS: TODO |
41 | | -- Linux: ``~/.cache/activitywatch`` |
| 48 | +- Windows: ``C:\Users\<USER>\AppData\Local\activitywatch\aw-server-rust\cache`` |
| 49 | +- macOS: ``~/Library/Caches/activitywatch/aw-server-rust`` |
| 50 | +- Linux: ``~/.cache/activitywatch/aw-server-rust`` |
0 commit comments