The new loading using createTempFile introduced by https://github.com/Vatuu/discord-rpc/pull/49 would sometimes cause the program to completely fail to load on some Windows machines. So I've been sticking to the version before that for the longest time on my project. Here I decided to simply revert that merge request and use createTempFile specifically for Linux, where it did not create any issues. Tested on Windows and Linux. Not tested on MacOS.
The new loading using createTempFile introduced by https://github.com/Vatuu/discord-rpc/pull/49 would sometimes cause the program to completely fail to load on some Windows machines. So I've been sticking to the version before that for the longest time on my project. Here I decided to simply revert that merge request and use createTempFile specifically for Linux, where it did not create any issues. Tested on Windows and Linux. Not tested on MacOS.