dart_discord_rpc icon indicating copy to clipboard operation
dart_discord_rpc copied to clipboard

MacOS Support

Open edeuss opened this issue 3 years ago • 2 comments

Is macOS support planned?

edeuss avatar May 09 '22 09:05 edeuss

It is, but I can't add it. I don't have a mac.

alexmercerind avatar May 18 '22 11:05 alexmercerind

@alexmercerind I'm not sure if the project is active or not, but I guess we can now add MacOS (even Android) discord-rpc support using Dart's Socket with InternetAddressType.unix. I've already created an repo with working example: https://github.com/KRTirtho/discord_rich_presence

Also, I guess we can drop the usage of shared library and dlls completely if we use win32's CreateNamedPipe for Windows and Unix Domain Socket will also work for Linux

You can follow the https://github.com/sardonicism-04/discord-rich-presence (Rust discord-rpc implementation) as I found the solution there. (Credit to @sardonicism-04)

I wanted tried to do the Windows implemenation but my C/C++ skills quickly showed up as I'm an expert in it /s 🙃

Btw, this way we also add the support for RPC Buttons 🔥 🔥 too (again thanks to @sardonicism-04)

KRTirtho avatar Apr 26 '24 15:04 KRTirtho