Flatpak: Support Discord Canary for rich presence

This commit is contained in:
matellush
2026-09-12 17:57:14 +02:00
parent a2efdf1197
commit cfc4d3d887
2 changed files with 7 additions and 0 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 "$@"
+2
View File
@@ -14,6 +14,8 @@ finish-args:
# required for the emulated bluetooth adapter feature to work.
- --allow=bluetooth
- --filesystem=xdg-run/app/com.discordapp.Discord:create
# also consider Discord Canary for rich presence
- --filesystem=xdg-run/app/com.discordapp.DiscordCanary:create
- --filesystem=xdg-run/discord-ipc-0:create
# required to disable the screensaver in various desktops
- --talk-name=org.freedesktop.ScreenSaver