neutralinojs / neutralinojs

Portable and lightweight cross-platform desktop application development framework
https://neutralino.js.org
Other
7.46k stars 376 forks source link

xdg-open fails if appname contains whitespace - linux/browser mode #349

Closed raffaelj closed 3 years ago

raffaelj commented 3 years ago

I just downloaded the latest release, tried the quick start tutorial and changed some settings in settings.json. When I set "appname": "test app", I can run it in window mode, but in browser mode I get the error xdg-open: unexpected argument 'app' and the browser window doesn't open automatically. Besides the error message, I can still open the page at http://localhost:5006/test%20app.

Expected Behavior

Either a note in the docs and an internal check, that whitespaces are not allowed or proper escaping of the appname argument for xdg-open.

Specifications

shalithasuranga commented 3 years ago

Hey.. appname is like app id. so no spaces expected. I noticed that spaces were working fine in the Windows version. So I just added to Linux too.. Thanks for reporting Ref: https://neutralino.js.org/docs/#/configuration/settings.json?id=appname