Fixed AppImage compatibility

This commit is contained in:
Observer KRypt0n_ 2022-01-02 02:38:42 +02:00
parent cd3f2e5346
commit becb7db124
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
3 changed files with 6 additions and 3 deletions

View file

@ -31,7 +31,9 @@ export default class Configs
} }
resolve(config); resolve(config);
}).catch(() => resolve(undefined)); }).catch(() => {
setTimeout(() => resolve(this.get(name)), 100);
});
}); });
} }

View file

@ -40,7 +40,7 @@ export default class Launcher
title: 'Settings', title: 'Settings',
width: 900, width: 900,
height: 600, height: 600,
enableInspector: true, // enableInspector: true,
exitProcessOnClose: false exitProcessOnClose: false
}); });

View file

@ -1,3 +1,4 @@
import constants from '../Constants';
import Debug, { DebugThread } from "../core/Debug"; import Debug, { DebugThread } from "../core/Debug";
declare const Neutralino; declare const Neutralino;
@ -178,7 +179,7 @@ class Process
public static run(command: string, options: ProcessOptions = {}): Promise<Process> public static run(command: string, options: ProcessOptions = {}): Promise<Process>
{ {
return new Promise(async (resolve) => { 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 // Set env variables
if (options.env) if (options.env)