mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-21 06:06:25 +00:00
Flatpak: Support Discord Canary for rich presence
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user