Given this is currently in the middle of a rewrite, and my lack of Rust skills, I thought I'd create an issue instead of a PR. Fairly simply, to access the IPC on Flatpak installations (I imagine this also works for Snap), you have to append the Flatpak path to the path you get from ENV_KEYS.
For example, to access an IPC normally, you would use /run/user/1000/discord-ipc-0. To access it on Flatpak, you would use /run/user/1000/app/com.discordapp.Discord/discord-ipc-0.
Given this is currently in the middle of a rewrite, and my lack of Rust skills, I thought I'd create an issue instead of a PR. Fairly simply, to access the IPC on Flatpak installations (I imagine this also works for Snap), you have to append the Flatpak path to the path you get from
ENV_KEYS
.For example, to access an IPC normally, you would use
/run/user/1000/discord-ipc-0
. To access it on Flatpak, you would use/run/user/1000/app/com.discordapp.Discord/discord-ipc-0
.The paths should be:
snap.discord
app/com.discordapp.Discord