docs(README): add instructions for starting Electron with an isolated data directory

Entire-Checkpoint: c6e522b4276c
This commit is contained in:
4gray committed 2026-04-25 16:56:02 +02:00
1 parent a76f09a8ce
commit d51ea4b2b0
1 file changed
+12
+12
View File
@@ -207,6 +207,18 @@ The equivalent Nx command is:
$ nx serve electron-backend
```
To start Electron with an empty, isolated data directory instead of your normal
`~/.iptvnator` folder, set `IPTVNATOR_E2E_DATA_DIR` for that run:
```
$ rm -rf .tmp/iptvnator-empty && mkdir -p .tmp/iptvnator-empty
$ IPTVNATOR_E2E_DATA_DIR="$PWD/.tmp/iptvnator-empty" pnpm run serve:backend
```
This redirects the SQLite database, Electron user data, and local config under
the given directory. Delete that directory whenever you want a fresh empty
state.
If you need to debug renderer freezes or GPU/compositor issues in Electron, you
can disable hardware acceleration for a run: