Skip to content

Commit

Permalink
Fix: Sanitize AppName in MakeShortcutCommand
Browse files Browse the repository at this point in the history
Resolves #481
  • Loading branch information
dreamsyntax committed Nov 29, 2024
1 parent 0037b18 commit b814ec1
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 b814ec1

Please # to comment.