hmlendea / gfn-electron

Linux Desktop client for Nvidia's GeForce NOW game streaming service
GNU General Public License v3.0
510 stars 62 forks source link

Adding Discord Rich Presence #21

Closed OnikenX closed 2 years ago

OnikenX commented 3 years ago

Just something to consider.

hmlendea commented 3 years ago

Could you please elaborate a bit more?

baptiste0928 commented 3 years ago

Hello ! 👋 I also think it would be a good addition, so I will clarify what it is about.

Rich Presence allows you to display more detailed information on your Discord profile than a simple "playing at". It is possible to add text, images and even buttons to join someone else's game. The GeForce Now for Windows application already takes advantage of this:

It would be nice to add the same to this application, with why not custom images for some games.

Useful links :

hmlendea commented 3 years ago

I will try to look into this once I get a little bit more free time to tinker with it. However, from what I've investigated so far, I don't know if I will be able to (reliably) set images. Since this app is just a wrapper over the base version, I don't have access to the inner workings of GFN and I can only rely on the window titles (which is the game's name).

But I do agree it would be a really sweet feature to have.

dubfib commented 2 years ago

https://npmjs.com/package/discord-rpc ^^^ great place to start https://www.npmjs.com/package/discord-rich-presence ^^^ wrapper of it made by the devs

dubfib commented 2 years ago

119 <--- working on it in this pull request