nathanbuchar / electron-settings

📝 A simple persistent user settings framework for Electron.
https://electron-settings.js.org
MIT License
817 stars 60 forks source link

After new install, users get ENOENT: No Such File on /Users/user/Library/Application Support/appname/Settings #111

Closed kkitay closed 6 years ago

kkitay commented 6 years ago
screen shot 2018-11-14 at 9 20 11 am

one users had Mac OS 10.10 and I'm finding out about the other. This only happens to users installing for the first time. I feel like this is an electron-settings bug, and needs to create the directory before trying to save.

My repo is here: https://github.com/kkitay/raccoon/

kkitay commented 6 years ago

I found that this issue https://github.com/nathanbuchar/electron-settings/issues/84 had the answer to my problem: I was requiring a file that required electron-settings outside of the app.on('ready') callback. After moving it all in, things are working fine.

nathanbuchar commented 6 years ago

Glad to hear you figured it out :)