record-daemon: give scripted runs a home of their own
An end-to-end run of mine put its settings through updateSettings, which wrote them to the user's real config: output path in %TEMP%, a "probe" application, 30 fps. The next game recorded into %TEMP%, so it showed up in the history with its metadata and no video beside it. RECORD_DAEMON_HOME now moves the config directory, the recordings, the logs and the IPC pipe under one directory. The app reads the same variable, so a probe talks to the scratch daemon instead of the real one. Default paths are unchanged. The daemon also logs its config and recordings paths at startup, which is the first thing to look at when a recording has no video.
This commit is contained in:
1 parent
6584b2f92f
commit
2e463dab3a
6 files changed
+71
-8
No files matched your search
@@ -109,8 +109,13 @@ cargo build --release
|
||||
## Configuration
|
||||
|
||||
The configuration file is stored at:
|
||||
- Linux: `~/.config/record-daemon/config.toml`
|
||||
- Windows: `%APPDATA%\record-daemon\config.toml`
|
||||
- Linux: `~/.config/leaguerecorder/record-daemon/config.toml`
|
||||
- Windows: `%APPDATA%\leaguerecorder\record-daemon\config\config.toml`
|
||||
|
||||
Recordings and timelines go to `recordings` next to that `config` folder.
|
||||
|
||||
Set `RECORD_DAEMON_HOME` to move all of it, config, recordings, logs and the IPC pipe, under one
|
||||
directory. Scripts and end-to-end tests use it so a run never reads or writes the real settings.
|
||||
|
||||
### Example Configuration
|
||||
|
||||
|
||||
Reference in new issue
Block a user