diff --git a/org.yuzu_emu.yuzu.json b/org.yuzu_emu.yuzu.json index 866951f..83d9d22 100644 --- a/org.yuzu_emu.yuzu.json +++ b/org.yuzu_emu.yuzu.json @@ -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" diff --git a/yuzu-launcher.sh b/yuzu-launcher.sh index 2dd9dbf..c78d54a 100755 --- a/yuzu-launcher.sh +++ b/yuzu-launcher.sh @@ -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