Move electron-config init below our change to appData path
This commit is contained in:
parent
63dcd43025
commit
0ad35cc0e6
4
main.js
4
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
|
||||
|
|
Loading…
Reference in New Issue