valorant-rpc icon indicating copy to clipboard operation
valorant-rpc copied to clipboard

Option to start Discord if it's not already running

Open NatSquared opened this issue 3 years ago • 2 comments

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)

NatSquared avatar Aug 16 '21 07:08 NatSquared

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

zayKenyon avatar Aug 21 '21 16:08 zayKenyon

Couldn't the return Discord.Result.NotRunning from the function RunCallbacks in discord game sdk be used to check if discord is running?

Fgarm avatar Jul 25 '22 19:07 Fgarm