Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize shortcut names #2449

Merged

Conversation

andyvorld
Copy link
Contributor

Sanitize game title for shortcut creation.

Previously games like Ruined King: A League of Legends Story will silently fail and create an invalid shortcut named Ruined King in windows, due to not filtering reserved characters.


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@Etaash-mathamsetty
Copy link
Member

Etaash-mathamsetty commented Feb 14, 2023

this should only be done on windows, there is no such restriction on linux and mac os (as far as I remember)

@Etaash-mathamsetty
Copy link
Member

seems like we need this sanitation for wineprefixes on linux/macOS rather than for shortcuts, so I guess everyone has a use for it

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I think it is good to have this for all OSes and not for Windows only since it covers some issues we could have on linux and mac as well.

@flavioislima flavioislima merged commit cb9b5fc into Heroic-Games-Launcher:main Feb 16, 2023
@flavioislima
Copy link
Member

Thanks for the contribution @andyvorld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants