mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
docs(README): add instructions for starting Electron with an isolated data directory
Entire-Checkpoint: c6e522b4276c
This commit is contained in:
1 parent
a76f09a8ce
commit
d51ea4b2b0
1 file changed
+12
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user