From cfc4d3d887dcd614ad3e13425a5b96fcc089ea96 Mon Sep 17 00:00:00 2001 From: matellush <202132988+matellush@users.noreply.github.com> Date: Sat, 12 Sep 2026 17:57:14 +0200 Subject: [PATCH] Flatpak: Support Discord Canary for rich presence --- Flatpak/dolphin-emu-wrapper | 5 +++++ Flatpak/org.DolphinEmu.dolphin-emu.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Flatpak/dolphin-emu-wrapper b/Flatpak/dolphin-emu-wrapper index be5f0e5108..86ab64d0ab 100755 --- a/Flatpak/dolphin-emu-wrapper +++ b/Flatpak/dolphin-emu-wrapper @@ -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 "$@" diff --git a/Flatpak/org.DolphinEmu.dolphin-emu.yml b/Flatpak/org.DolphinEmu.dolphin-emu.yml index 72e80b4267..d594cdc345 100644 --- a/Flatpak/org.DolphinEmu.dolphin-emu.yml +++ b/Flatpak/org.DolphinEmu.dolphin-emu.yml @@ -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