diff --git a/main.js b/main.js index 45c00518f..bd410cefa 100644 --- a/main.js +++ b/main.js @@ -10,7 +10,6 @@ const ipc = electron.ipcMain; const Menu = electron.Menu; const shell = electron.shell; const ElectronConfig = require('electron-config'); -const userConfig = new ElectronConfig(); console.log('setting AUMID'); app.setAppUserModelId('org.whispersystems.signal-desktop') @@ -71,6 +70,9 @@ if (config.has('storageProfile')) { } console.log('userData ' + app.getPath('userData')); +// this needs to be below our update to the appData path +const userConfig = new ElectronConfig(); + // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. let mainWindow