diff options
Diffstat (limited to 'audio/tauonmb/flatpak-rpc.diff')
-rw-r--r-- | audio/tauonmb/flatpak-rpc.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/audio/tauonmb/flatpak-rpc.diff b/audio/tauonmb/flatpak-rpc.diff new file mode 100644 index 0000000000..fbe8501364 --- /dev/null +++ b/audio/tauonmb/flatpak-rpc.diff @@ -0,0 +1,21 @@ +diff --git a/discord-ipc-0 b/discord-ipc-0 +new file mode 120000 +index 0000000..c3e06d7 +--- /dev/null ++++ b/discord-ipc-0 +@@ -0,0 +1 @@ ++{app/com.discordapp.Discord,/run/user/1000}/discord-ipc-0 +\ No newline at end of file +diff --git a/extra/tauonmb.sh b/extra/tauonmb.sh +index 0c9b715..8a2e50d 100644 +--- a/extra/tauonmb.sh ++++ b/extra/tauonmb.sh +@@ -1,4 +1,8 @@ + #!/bin/bash ++if [ ! -f "$XDG_RUNTIME_DIR/discord-ipc-0" ]; then ++ ln -sf "{app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-0" ++fi ++ + if [ "$1" == "--no-start" ]; then + if [ "$2" == "--play" ]; then curl http://localhost:7813/play/ + elif [ "$2" == "--play-pause" ]; then curl http://localhost:7813/playpause/ |