I'm building an application using ElectronJS for myself to open various applications.
When I run from app1 an app2, which also runs app3, app2 can no longer find app3 because the path has been changed to app1's directory and if I move app3 to app1's directory, app2 can find app3.
Also if I run app2 directly by double clicking on app2.exe it runs app3 without a problem.
The app list looks like this:
const appList = {
app1: `${path.join(exepath, '..')}\\381637ea\\2ab88db2\\app1.exe}`,
app2: `${path.join(exepath, '..')}\\e23bf9a0\\698700a7\\app2.exe}`, //app2.exe runs bin64/app3.exe
}
And I'm executing like this:
shell.openExternal(appList.app2);
I tried using path.resolve but it did not help.
I remember having the same issue in the C# application. Does anybody have any idea what's going on?
Thank you
Via Active questions tagged javascript - Stack Overflow https://ift.tt/bv7VE2L
Comments
Post a Comment