App does not restart if the installation path contains spaces (cross-platform issue)
pateketrueke opened this issue · comments
Describe the bug
A simple use-case is to install the application with, say, NSIS. Then, you have C:\Program Files\My App\neutralino-app-win_x64.exe
and it works as expected.
Now, open the devtools inspector and run Neutralino.app.restartProcess()
to restart your app.
This also happens on other OS, I am on mac, and after running the method above the shell says:
/bin/sh: ./dist/foo: No such file or directory
For sake of testing, I just created the app and renamed the folder to ./dist/foo bar
then I executed it manually with ./dist/foo\ bar/neutralino-app-mac_x64
and it started correctly.
Expected behavior
It should works, otherwise restartProcess()
has no purpose for most Windows users.
Specifications
neu CLI: v9.4.0
Neutralinojs binaries: v4.10.0
Neutralinojs client: v3.8.
Hey @pateketrueke thanks for reporting this. This issue was fixed and will be released with the next version 🎉