From a34f81ff34b22a00cd2d4116b33ac3b5e36e3c86 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 23 Jan 2025 13:39:45 -0500 Subject: [PATCH] Flatpak: Move wrapper script outside of the manifest --- Flatpak/dolphin-emu-wrapper | 8 ++++++++ Flatpak/org.DolphinEmu.dolphin-emu.yml | 11 +---------- 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100755 Flatpak/dolphin-emu-wrapper diff --git a/Flatpak/dolphin-emu-wrapper b/Flatpak/dolphin-emu-wrapper new file mode 100755 index 0000000000..be5f0e5108 --- /dev/null +++ b/Flatpak/dolphin-emu-wrapper @@ -0,0 +1,8 @@ +#!/bin/sh + +# 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; +done + +dolphin-emu "$@" diff --git a/Flatpak/org.DolphinEmu.dolphin-emu.yml b/Flatpak/org.DolphinEmu.dolphin-emu.yml index d014a62028..db42a3bd03 100644 --- a/Flatpak/org.DolphinEmu.dolphin-emu.yml +++ b/Flatpak/org.DolphinEmu.dolphin-emu.yml @@ -62,19 +62,10 @@ modules: cleanup: - /share/man post-install: - - install -D -t ${FLATPAK_DEST}/bin/ ../dolphin-emu-wrapper + - install -Dm755 -t ${FLATPAK_DEST}/bin/ ../Flatpak/dolphin-emu-wrapper - install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml - desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper' /app/share/applications/dolphin-emu.desktop sources: - type: dir path: .. - - type: script - commands: - - | - 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 - dolphin-emu "$@" - dest-filename: dolphin-emu-wrapper