valorant-rpc
valorant-rpc copied to clipboard
Option to start Discord if it's not already running
Sometimes after a restart, Discord isn't launched when I run the program. This can be due to it updating and not having the pipe available yet, or it may simply not be launched. I think the program should:
- Wait a few moments if the Discord updater or Discord is found but the pipe isn't ready yet
- Occasionally re-scan for Discord and attempt to re-establish the pipe if it isn't present (this could be a config option if performance is an issue)
Simple .bat, should be simple to incorporate into the code.
TASKLIST | FINDSTR ProgramName || START "" C:\Users\%username%\AppData\Local\Discord\app-1.0.9002\Discord.exe"
It won't launch multiple instances as native Discord doesn't support it.
@colinhartigan
Couldn't the return Discord.Result.NotRunning from the function RunCallbacks in discord game sdk be used to check if discord is running?