Skip to content

Commit

Permalink
fix: having spaces in electron path now doesn't make path unusable (#…
Browse files Browse the repository at this point in the history
…1023)

Surrounding ' or " didn't fix the issue for me
  • Loading branch information
boundlesscalm authored Jul 8, 2024
1 parent 5b4deec commit bc5294a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- Installation of the J-Link legacy driver on Windows.
- App crash on Linux (Ubuntu 22.04).
- Linux: Application shortcuts now also work for when the path to nRF Connect
for Desktop contains spaces.

## 5.0.0 - 2024-05-13

Expand Down
2 changes: 1 addition & 1 deletion src/main/apps/createDesktopShortcut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const createShortcutForLinux = (app: LaunchableApp) => {
'Encoding=UTF-8',
`Version=${app.currentVersion}`,
`Name=${fileName}`,
`Exec=${getElectronExePath()} ${args}`,
`Exec=${getElectronExePath().replace(/ /g, '\\ ')} ${args}`,
'Terminal=false',
`Icon=${icon}`,
'Type=Application',
Expand Down

0 comments on commit bc5294a

Please sign in to comment.