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

Fix discord app registration on Windows #22

Merged
merged 2 commits into from Nov 29, 2022
Merged

Fix discord app registration on Windows #22

merged 2 commits into from Nov 29, 2022

Conversation

Nehliin
Copy link
Member

@Nehliin Nehliin commented Nov 29, 2022

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Discord app registration was broken on at Win 11 (unclear if it worked on previous versions) due to the verbatim prefix (\\?\) that was added to the exe path. Apparently this isn't supported when the path with the prefix is saved in the registry as the shell open command. It would simply fail to open the registered app.

I also compared to some other games I had registered and tweaked the DefaultIcon location (+ path to strip the prefix) as well as some other register key values to more closely mimic how the "official" registration is done. Code for the official version can be found here.

Tested on Win 11 and could confirm the app launched correctly

@mergify mergify bot merged commit b318df4 into main Nov 29, 2022
@mergify mergify bot deleted the win-registration branch November 29, 2022 15:03
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.

None yet

2 participants