Different Settings file path throws error
See original GitHub issueUncaught Exception: Error: ENOENT: no such file … …\Settings
// main
import settings from 'electron-settings'
//...
app.setPath('userData', userDataPath + 'some addition');
//...
app.on('ready', function () {
settings.get('whatver') // boom
}
I checked the path w/ settings.file and indeed it’s not updated on app.setPath.
fs.watch has a lot of caveats - should we really rely on it? At least we must state this in the docs. Dunno if that’s the origin my issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
11 Ways to Fix "The System Cannot Find The Path Specified ...
1. Run Command Prompt as an Administrator ... Windows utilities cannot access all files and folders available on your device. Administrative ...
Read more >Several apps use the same path for user.config files ... - MSDN
When I change from working on one to another I get a configuration error the first time I try to access My.Settings.
Read more >Error While Reading config File - Help - UiPath Forum
Your file path to the config file is not correct. In your zip file at least, there is no 'data' folder as you...
Read more >Python is throwing error for a file path inside the Project folder ...
The work-around is to get the path of the module you are in and apply the relative path of the resource file to...
Read more >Configuration | NestJS - A progressive Node.js framework
Depending on the environment, different configuration settings should be used. ... To specify another path for the .env file, set the envFilePath property ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Whoops! Read your first statement wrong
@nathanbuchar aren’t 1. and 2. contradicting?
Maybe I should make it more clear:
1.) Will existing settings (i. e. file contents) be copied to the new location upon the call of
setPath()? -or- 2.) Will they be copied when I callset()and if yes what will be saved?😉