fix: use data_local_dir if state_dir not found (#31)

Fixes #30
This commit is contained in:
Jens K.
2024-12-30 19:56:27 +01:00
committed by GitHub
parent 88293898f6
commit 7312ad51d8
2 changed files with 24 additions and 3 deletions

View File

@@ -126,6 +126,16 @@ Stored on file system.
cat ~/.local/state/timr/data/timr.data
```
- `macOS`
```sh
cat /Users/{user}/Library/Application Support/timr/data/timr.data
```
- `Windows`
```sh
cat C:/Users/{user}/AppData/Local/timr/data/timr.data
```
## Logs
In `debug` mode only.
@@ -134,3 +144,13 @@ In `debug` mode only.
```sh
tail -f ~/.local/state/timr/logs/timr.log
```
- `macOS`
```sh
tail -f /Users/{user}/Library/Application Support/timr/logs/timr.log
```
- `Windows`
```sh
tail -f C:/Users/{user}/AppData/Local/timr/logs/timr.log
```