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

Electron-store data folders #235

Closed webby-the-dev closed 2 years ago

webby-the-dev commented 2 years ago

Hi, I defined my store as const store = new Store({ name: 'MyAppName' });.

When I run my app by yarn start and save any data to store it is not saved into ~/Library/Application Support/MyAppName. It works only when I package app and run executable file.

So my question is where is this data stored on my Mac? Looks like it is different folder for development and different after packaging app into executable file.

If I log app.getPath('appData') for both I see ~/Library/Application Support/MyAppName but I have different data after running yarn start and different after yarn package and running executable file.

sindresorhus commented 2 years ago

Duplicate of #233