flathub / org.libretro.RetroArch

https://flathub.org/apps/details/org.libretro.RetroArch
Creative Commons Zero v1.0 Universal
18 stars 16 forks source link

Discord Rich Presence #162

Open gcavallo opened 4 years ago

gcavallo commented 4 years ago

RetroArch added Discord Rich Presence in 1.7.4 but it doesn't work when sandboxed inside flatpak.

There's a guide on how support can be added in a flatpak app here: https://github.com/flathub/com.discordapp.Discord/wiki/Rich-Precense-(discord-rpc)

Other apps on flathub, like com.valvesoftware.Steam, have applied this in their distribution.

Applying the permission and symlink manually still doesn't work:

[INFO] [DISCORD]: Registering startup command: sh -c retroarch -v
sh: xdg-mime: command not found

Seems xdg-utils is required by deps/discord-rpc/src/discord_register_linux.c but isn't included in this flatpak.

soredake commented 2 years ago

Example of doing this from yuzu flatpak: https://github.com/flathub/org.yuzu_emu.yuzu/blob/6d245eaf894daf55b72475f2a824d46d7d7cc95b/org.yuzu_emu.yuzu.json#L15 https://github.com/flathub/org.yuzu_emu.yuzu/blob/6d245eaf894daf55b72475f2a824d46d7d7cc95b/yuzu-launcher.sh#L17-L20