Jxyme / simple-discord-rpc

Beautify your Discord profile with a fully customizable Discord Rich Presence, now with buttons.
32 stars 5 forks source link

yall know how to run rpc client upon starting discord, as it fails on boot since discord aint up #6

Closed rbrtbrnschn closed 3 years ago

rbrtbrnschn commented 3 years ago

im on linux.

Jxyme commented 3 years ago

Have you looked into possibly a Cron job with a delay to run at boot so Discord has enough time to boot before Discord-RPC attempts to connect to your client?

My experience with Linux ends with servers, I’ve never used an OS with a GUI so I’m not entirely sure what other alternatives there are to those that are on Windows. (e.g. Task Scheduler)

lambdagg commented 3 years ago

Maybe we could just try to implement an automatic retry every X seconds?

omsenjalia commented 3 years ago

Yes

Jxyme commented 3 years ago

Just released an update to address this @rbrtbrnschn. Hopefully this resolves the issue, and sorry for the delay.

The default duration to retry is set to 15 seconds, however, if you wish to shorten and/or extend this duration, you can.

Simply modify this line in index.js locally after downloading the latest Release.

lambdagg commented 3 years ago

Hey @Jxyme why don't you set that in the config?

Jxyme commented 3 years ago

Hey @Jxyme why don't you set that in the config?

Good question. I originally did, although I chose to remove the configuration setting before committing the changes.

I thought it would be best for the config.json to remain the same, primarily focused on the Discord RPC’s appearance, for ease of use purposes.

I’ve had a number of issues opened and DMs over on Discord in regards to the setup & configuration being difficult to understand, and so I personally thought this would be the right decision to make.

Hopefully you understand and can see where I’m coming from. :)

lambdagg commented 3 years ago

I see right. Thank you for your precious time :)