sindresorhus / electron-store

Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
MIT License
4.57k stars 148 forks source link

Folders where electron store stores data #233

Closed webby-the-dev closed 2 years ago

webby-the-dev commented 2 years ago

If I build electron app and use it it stores data in correct folder which is (on Mac)~/Library/Application Support/AppName/config.json.

But when I use it in dev mode by running yarn start it also stores data somewhere but it is not the same folder because it does not update after changing some data even though I update it. Is there a different folder where it is stored for dev mode and after build or should it be the same one?

sindresorhus commented 2 years ago

This would be a question for the Electron project. This package just uses https://electronjs.org/docs/api/app#appgetpathname

webby-the-dev commented 1 year ago

For all the people interested in, when you run electron in development mode all data is stored in Electron folder. If you build your project all data is stored in the name that you define when creating store.