Merge pull request #14862 from matellush/flatpak/discord-rich-presence

Flatpak: Fix Discord rich presence
This commit is contained in:
JosJuice
2026-09-20 23:11:40 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -3,6 +3,11 @@
# https://github.com/flathub/com.discordapp.Discord/wiki/Rich-Precense-(discord-rpc)#flatpak-applications
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;
# Do the same for Discord Canary as a fallback
# (will only stick if available during startup)
test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.DiscordCanary,$XDG_RUNTIME_DIR}/discord-ipc-$i;
# Make any dangling links use the stable Discord though
test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
done
dolphin-emu "$@"
+3 -1
View File
@@ -14,7 +14,9 @@ finish-args:
# required for the emulated bluetooth adapter feature to work.
- --allow=bluetooth
- --filesystem=xdg-run/app/com.discordapp.Discord:create
- --filesystem=xdg-run/discord-ipc-0:create
# also consider Discord Canary for rich presence
- --filesystem=xdg-run/app/com.discordapp.DiscordCanary:create
- --filesystem=xdg-run/discord-ipc-0
# required to disable the screensaver in various desktops
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.xfce.ScreenSaver