feat(discord): add Discord Rich Presence support#109
feat(discord): add Discord Rich Presence support#109christopherjnelson wants to merge 4 commits into
Conversation
|
Hi, thank you for your contribution, i'm closing this PR in favor of this one: #112 |
|
Thanks for taking a look and for getting Rich Presence merged. One thing worth noting from my testing: That was the reason my implementation added liveness detection and cached activity replay. I manually verified that flow against Discord restarts. No need to reopen this PR, but I wanted to mention it in case the merged implementation shows the same restart behavior. I’d be happy to provide a smaller follow-up focused only on recovery if it becomes useful. |
Summary
Adds Discord Rich Presence support to the Linux shell using the IPC contract exposed by stremio-web.
Implementation
discord-connectdiscord-disconnectdiscord-set-activitydiscord-clear-activitydiscord-statusFlatpak
Adds narrow access for:
xdg-run/discord-ipc-0xdg-run/app/com.discordapp.Discord:createxdg-run/app/dev.vencord.Vesktop:createNo broad
xdg-runaccess is granted.The production Flathub manifest will require equivalent permissions when the feature is released.
Testing
cargo fmt --all -- --checkcargo clippy --all --no-deps -- -D warningscargo test— 59 passedcargo buildManual testing covered:
Additional cleanup
flatpak/build.shnow exits immediately when a command fails.