Skip to content

Commit

Permalink
Merge pull request #335 from Zagrios/bugfix/advanced-launch-arguments…
Browse files Browse the repository at this point in the history
…-not-work-with-shortcuts

[bugfix] when only one advanced launch arg was set for a shortcut it was mishandled
  • Loading branch information
Zagrios authored Oct 7, 2023
2 parents 029df85 + 1dde41f commit 0de2ea4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/services/bs-launcher.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ export class BSLauncherService {
shortcutLink = new URL(shortcutLink);
}

return objectFromEntries(shortcutLink.searchParams.entries()) as ShortcutParams;
const params = objectFromEntries(shortcutLink.searchParams.entries()) as ShortcutParams;

if(typeof params.additionalArgs === "string"){
params.additionalArgs = [params.additionalArgs];
}

return params;
}

public shortcutLinkToLaunchOptions(shortcutLink: string|URL): LaunchOption{
Expand Down

0 comments on commit 0de2ea4

Please sign in to comment.