Skip to content

Commit 42bab7c

Browse files
authored
fix: use correct config path during development (#1690)
1 parent c62a96c commit 42bab7c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ The configuration file and logs are located on:
179179

180180
For quick access to this folders, just right-click on your tray icon and then 'Logs Directory' or 'Configuration File', depending on what you want.
181181

182-
**Note for developers:** When running dev version via `npm start` configuration will be placed in `/Electron/` instead of `/IPFS Desktop/` (`~/.config/Electron/config.json` on Linux). This is a known limitation of dev mode, does not impact packaged versions.
183-
184182
### How do we select the IPFS repo location?
185183

186184
We use [ipfsd-ctl](https://github.com/ipfs/js-ipfsd-ctl), which, in default conditions, will check `IPFS_PATH` environment variable. If not set, we fallback to `$HOME/.ipfs`. As soon as the first run has succeded, we save the information about the repository location in the configuration file, which becomes the source of truth.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"description": "IPFS Native Application",
77
"main": "src/index.js",
88
"scripts": {
9-
"start": "cross-env NODE_ENV=development electron src/index.js",
9+
"start": "cross-env NODE_ENV=development electron .",
1010
"lint": "standard",
1111
"test": "cross-env NODE_ENV=test mocha test/unit/**/*.spec.js",
1212
"test:e2e": "xvfb-maybe cross-env NODE_ENV=test LIBP2P_ALLOW_WEAK_RSA_KEYS=1 mocha test/e2e/**/*.e2e.js --exit",

0 commit comments

Comments
 (0)