Skip to content

Commit

Permalink
Merge pull request #498 from dreamsyntax/fix-481
Browse files Browse the repository at this point in the history
Fix: Sanitize AppName in MakeShortcutCommand
  • Loading branch information
Sewer56 authored Nov 29, 2024
2 parents eb5ccfa + b814ec1 commit eaf57c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void Execute(object? parameter)

// Save the shortcut.
var file = (IPersistFile) shell;
var link = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), $"{_config?.Config.AppName} (Reloaded).lnk");
var link = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), $"{_config?.Config.AppName.SanitizeFileName()} (Reloaded).lnk");
file.Save(link, false);

Actions.DisplayMessagebox?.Invoke(Resources.AddAppShortcutCreatedTitle.Get(),
Expand Down

0 comments on commit eaf57c8

Please sign in to comment.