Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Option to start Discord if it's not already running #50

Open
NatSquared opened this issue Aug 16, 2021 · 2 comments
Open

Option to start Discord if it's not already running #50

NatSquared opened this issue Aug 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@NatSquared
Copy link

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)
@zayKenyon
Copy link
Contributor

zayKenyon commented Aug 21, 2021

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

@colinhartigan colinhartigan added the enhancement New feature or request label Aug 27, 2021
@Fgarm
Copy link

Fgarm commented Jul 25, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants