Skip to content

Commit

Permalink
Use xdg-run/app/$id dir instead of custom one
Browse files Browse the repository at this point in the history
  • Loading branch information
gasinvein committed May 17, 2019
1 parent ce7532d commit 1fb5deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion com.discordapp.Discord.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"--filesystem=xdg-videos:ro",
"--filesystem=xdg-pictures:ro",
"--filesystem=xdg-download",
"--filesystem=xdg-run/discord:create",
"--env=XDG_CURRENT_DESKTOP=Unity",
"--talk-name=org.freedesktop.portal.Fcitx",
"--talk-name=org.kde.StatusNotifierWatcher"
Expand Down
3 changes: 2 additions & 1 deletion discord.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
FLATPAK_ID=${FLATPAK_ID:-"com.discordapp.Discord"}
socat $SOCAT_ARGS \
UNIX-LISTEN:$XDG_RUNTIME_DIR/discord/ipc-0,forever,fork \
UNIX-LISTEN:$XDG_RUNTIME_DIR/app/${FLATPAK_ID}/discord-ipc-0,forever,fork \
UNIX-CONNECT:$XDG_RUNTIME_DIR/discord-ipc-0 \
&
socat_pid=$!
Expand Down

0 comments on commit 1fb5deb

Please sign in to comment.