Add Discord Rich Presence Support

This commit is contained in:
Snaggly 2022-02-23 08:17:32 +01:00
parent 4717ece71b
commit 6794fe0f43
No known key found for this signature in database
GPG key ID: EA687030477622FE
2 changed files with 8 additions and 1 deletions

View file

@ -13,7 +13,8 @@
"--socket=fallback-x11",
"--socket=pulseaudio",
"--share=network",
"--share=ipc"
"--share=ipc",
"--filesystem=xdg-run/app/com.discordapp.Discord:create"
],
"cleanup-commands": [
"/app/cleanup-BaseApp.sh"

View file

@ -13,6 +13,12 @@ EOF
zenity --warning --no-wrap --title "That's awkward ..." --text "$MESSAGE"
}
# Discord RPC
for i in {0..9}; do
test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
done
if ! prlimit --nofile=8192 yuzu "$@"; then
report_error
fi