Skip to content

Commit

Permalink
Fix escaping spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Aug 7, 2023
1 parent 6978f30 commit d78d6b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions src/backend/squirrel-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:");
Expand Down

0 comments on commit d78d6b5

Please sign in to comment.