diff --git a/src/ts/Configs.ts b/src/ts/Configs.ts index 3f8d41a..40d79e8 100644 --- a/src/ts/Configs.ts +++ b/src/ts/Configs.ts @@ -31,7 +31,9 @@ export default class Configs } resolve(config); - }).catch(() => resolve(undefined)); + }).catch(() => { + setTimeout(() => resolve(this.get(name)), 100); + }); }); } diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index 42a1d8e..aa8a0d7 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -40,7 +40,7 @@ export default class Launcher title: 'Settings', width: 900, height: 600, - enableInspector: true, + // enableInspector: true, exitProcessOnClose: false }); diff --git a/src/ts/neutralino/Process.ts b/src/ts/neutralino/Process.ts index bdb032c..3971307 100644 --- a/src/ts/neutralino/Process.ts +++ b/src/ts/neutralino/Process.ts @@ -1,3 +1,4 @@ +import constants from '../Constants'; import Debug, { DebugThread } from "../core/Debug"; declare const Neutralino; @@ -178,7 +179,7 @@ class Process public static run(command: string, options: ProcessOptions = {}): Promise { return new Promise(async (resolve) => { - const tmpFile = `${NL_CWD}/${10000 + Math.round(Math.random() * 89999)}.tmp`; + const tmpFile = `${await constants.paths.launcherDir}/${10000 + Math.round(Math.random() * 89999)}.tmp`; // Set env variables if (options.env)