Lachee / discord-rpc-csharp

C# custom implementation for Discord Rich Presence. Not deprecated and still available!
MIT License
560 stars 93 forks source link

[Feature Request] Allow overriding OS in RegisterUriScheme #163

Open RuiNtD opened 2 years ago

RuiNtD commented 2 years ago

Hello. In my application's environment, Environment.OSVersion.Platform is returning Unix on Mac, which is causing RegisterUriScheme to throw a "No such file or directory" exception. I have a separate way of detecting Windows, Mac, and Linux in my code and it would be nice if I could pass that into RegisterUriScheme.

Lachee commented 2 years ago

you could make a PR to fix the registration scheme for Mac.

Environment shouldn't be returning unix for mac, that is why MacOSX exists. In saying that, I have actually not tested this library in MacOS yet.