From bc5294a80660cf9fcf39a3f0bb927d2b276ed398 Mon Sep 17 00:00:00 2001 From: Pascal Pickel <30871542+boundlesscalm@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:43:05 +0200 Subject: [PATCH] fix: having spaces in electron path now doesn't make path unusable (#1023) Surrounding ' or " didn't fix the issue for me --- Changelog.md | 2 ++ src/main/apps/createDesktopShortcut.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 4b01c183c..d7bfeccaf 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/src/main/apps/createDesktopShortcut.ts b/src/main/apps/createDesktopShortcut.ts index 1b31f406a..66d107834 100644 --- a/src/main/apps/createDesktopShortcut.ts +++ b/src/main/apps/createDesktopShortcut.ts @@ -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',