Open Feichtmeier opened 6 days ago
I know, how to fix it but it needs changes in the upstream source code. Basically, the code is searching in a path is non-existent to snap context.
In snap, the XDG_RUNTIME_DIR
is /run/user/1000/snap.musicpod/
Now, discord-ipc is in /run/user/1000/snap.discord/
. The snap.discord
folder is accounted, but you cannot access this path normally from musicpod. So, for that the path of the ipc has to be like this
$XDG_RUNTIME_DIR/../snap.discord/ipc
or wherever the discord ipc is.
The problem is, I am a very big noob in rust... So, not sure if I'll be able to fix it.
I know, how to fix it but it needs changes in the upstream source code. Basically, the code is searching in a path is non-existent to snap context.
In snap, the
XDG_RUNTIME_DIR
is/run/user/1000/snap.musicpod/
Now, discord-ipc is in
/run/user/1000/snap.discord/
. Thesnap.discord
folder is accounted, but you cannot access this path normally from musicpod. So, for that the path of the ipc has to be like this
$XDG_RUNTIME_DIR/../snap.discord/ipc
or wherever the discord ipc is.The problem is, I am a very big noob in rust... So, not sure if I'll be able to fix it.
Wow thanks for this analysis! And thank for the pull request 🤞🏻 https://github.com/vionya/discord-rich-presence/pull/42
Fails with
I am using this dart package which is using this rust package:
https://github.com/KRTirtho/frb_plugins/blob/main/packages/flutter_discord_rpc/native/Cargo.toml#L18C1-L18C22
in the rust package that is being there used this is the line where it wants to create a unix socket:
https://github.com/vionya/discord-rich-presence/blob/18ecbe78c7030a31932efb550e738fef94aa7a6b/src/ipc_unix.rs#L90
@kenvandine do you know if this doable with the snap with any plug/slot? I disable this for now for linux and added a toggle setting for all inside settings