Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relocate RP socket to xdg-run/app/appid directory #68

Merged
merged 2 commits into from
May 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion com.discordapp.Discord.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<screenshots>
<screenshot type="default">
<image type="source">https://support.discordapp.com/hc/en-us/article_attachments/206368357/MenuCircle.png</image>
<caption>Window</caption>
<caption>Main window</caption>
</screenshot>
<screenshot>
<image type="source">https://support.discordapp.com/hc/en-us/article_attachments/206077828/FLFeathWindow.png</image>
Expand Down
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