From d51ea4b2b044e5ab02c6d39a31dc13bfb3b27cf6 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 25 Apr 2026 16:56:02 +0200 Subject: [PATCH] docs(README): add instructions for starting Electron with an isolated data directory Entire-Checkpoint: c6e522b4276c --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 1e0557eda..e20e3ce28 100644 --- a/README.md +++ b/README.md @@ -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: