Replace RPC lib with a fixed version that works on Linux.

This commit is contained in:
ceikry 2021-07-24 16:52:26 -05:00
parent a2fed269cc
commit 74dfefdb47
3 changed files with 2 additions and 3 deletions

View file

@ -18,7 +18,7 @@ object Discord {
//Removed support for Linux due to the outlined issue on line 37. TODO: Revisit this when the RPC library updates. There's a PR there that *should* fix it.
fun checkInitializable() : Boolean{
val OS = System.getProperty("os.name")
if(OS.toLowerCase().startsWith("windows")){
if(OS.toLowerCase().startsWith("windows") || OS.toLowerCase().contains("nux")){
val arch = System.getProperty("os.arch")
return arch != "aarch64" && !initialized
}