Move electron-config init below our change to appData path
This commit is contained in:
parent
63dcd43025
commit
0ad35cc0e6
1 changed files with 3 additions and 1 deletions
4
main.js
4
main.js
|
@ -10,7 +10,6 @@ const ipc = electron.ipcMain;
|
||||||
const Menu = electron.Menu;
|
const Menu = electron.Menu;
|
||||||
const shell = electron.shell;
|
const shell = electron.shell;
|
||||||
const ElectronConfig = require('electron-config');
|
const ElectronConfig = require('electron-config');
|
||||||
const userConfig = new ElectronConfig();
|
|
||||||
|
|
||||||
console.log('setting AUMID');
|
console.log('setting AUMID');
|
||||||
app.setAppUserModelId('org.whispersystems.signal-desktop')
|
app.setAppUserModelId('org.whispersystems.signal-desktop')
|
||||||
|
@ -71,6 +70,9 @@ if (config.has('storageProfile')) {
|
||||||
}
|
}
|
||||||
console.log('userData ' + app.getPath('userData'));
|
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
|
// 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.
|
// be closed automatically when the JavaScript object is garbage collected.
|
||||||
let mainWindow
|
let mainWindow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue