Execute path was not escaped on Linux

  • The target platform(s) the problem occurs on: Linux
  • Node version (run node -v): 8.10.0
  • auto-launch version: 5.0.5
  • The options i'm passing to auto-launch:
var autoLauncher = new AutoLaunch({
    name: 'Name with space',
});
  • Electron 1.8.4
  • Main process

If I pass value for option name in AutoLaunch object which has whitespace, the execute path in .desktop file will not be escaped.
Value: Name with space
Expected execute path: /opt/Name\ with\ space/app
Actual execute path: /opt/Name with space/app (missing \ to escape whitespace)