sciencefair-land / sciencefair

The futuristic, fabulous and free desktop app for working with scientific literature :microscope: :book:
https://sciencefair-app.com
MIT License
603 stars 52 forks source link

Store app data in require('electron').app.getPath('userData') #90

Closed bcomnes closed 7 years ago

bcomnes commented 7 years ago

My home folder is already a mess of dot files, its better to avoid that if possible. Utilize require('electron').app.getPath('userData') to store application data in the preferred OS location for application data. You can separate out user data into the default document location: app.getPath('documents')

See: https://github.com/electron/electron/blob/master/docs/api/app.md#appgetpathname And https://github.com/sindresorhus/electron-store

bcomnes commented 7 years ago

🙌