Merge pull request #421 from jcwillox/patch-1

Simplify config path and increase portability
This commit is contained in:
Björn Dalfors
2024-04-02 19:33:26 +01:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ log.info('App starting...')
const connectionManager = new ConnectionManager() const connectionManager = new ConnectionManager()
connectionManager.manageConnections() connectionManager.manageConnections()
const configStorage = new ConfigStorage(path.join(app.getPath('appData'), app.name, 'settings.json')) const configStorage = new ConfigStorage(path.join(app.getPath('userData'), 'settings.json'))
configStorage.init() configStorage.init()
// Keep a global reference of the window object, if you don't, the window will // Keep a global reference of the window object, if you don't, the window will