diff --git a/package.json b/package.json index b00d708..e738f70 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "eyecommander", "productName": "EyeCommander", - "version": "1.4.2", + "version": "1.4.3", "description": "Detect blinks and convert them to switch output", "main": ".webpack/main", "scripts": { diff --git a/src/backend/squirrel-events.js b/src/backend/squirrel-events.js index 1476664..4459c9f 100644 --- a/src/backend/squirrel-events.js +++ b/src/backend/squirrel-events.js @@ -110,11 +110,13 @@ const openAdminEyeCommander = () => { name: "EyeCommander SpawnProcess", }; + const escapedPath = process.execPath.replace(/ /g, "` "); + logger.info("Running the following command:"); - logger.info(`powershell Start-Process -FilePath "${process.execPath}"`); + logger.info(`powershell Start-Process -FilePath "${escapedPath}"`); sudo.exec( - `powershell Start-Process -FilePath "${process.execPath}"`, + `powershell Start-Process -FilePath "${escapedPath}"`, options, function (error, stdout, stderr) { logger.info("Executed with the following results:");