justas-d / mpd-rich-presence-discord

Broadcast your MPD state using discord rich presence!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customizing Icon

reyandotco opened this issue · comments

commented

I've replaced the mpd.svg file with an svg of my own (one that I would like to use instead of the default icon) and ran the makePng.sh script to generate a raster image of it in the assets/discord/png folder.

However, when I recompile the project and run mpd_discord_richpresence, the image remains as it was previously.

Looking through all the source files I can't seem to find anything pertaining to the mpd.svg|png file either, is the icon hardcoded into the binary?

If so how would I go about changing it?

commented

image

Tried to take a peek at the binary itself, it mentions an mpd_large object, which I assume is the icon in use. There is also a reference to it in main.cpp.

No other reference:

image

commented

Replacing mpd_large with just mpd (in main.cpp) seems to break the program, so I doubt it's referencing a filename like the other variables.

The same happens if I use mpd.png instead.

e.g:

image

The image is controlled by the discord "app". See:
image

You'd have to change the app ids here to your custom ones https://github.com/justas-d/mpd-rich-presence-discord/blob/master/src/main.cpp#L14

commented

image

lmao got it.

thanks so much for the help!