mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #605] Add discord rpc #617
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#617
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/605
Author: @ThePotato97
Created: 4/25/2025
Status: 🔄 Open
Base:
main← Head:discord-rpc📝 Commits (10+)
2bd6566Add discord rpcb817a95Prevent discord rpc from blocking main thread8c76589discord rpc ui/config stuffb4a0fa5change to discord app id instead of client iddf9df9afix edge case with app id stated709f7badd support for podcasts4b414c8added taplo.tomld7ef8b3Remove new lines2a096dechange all logs to lowercasee3fa164removed unused crate📊 Changes
11 files changed (+476 additions, -3 deletions)
View changed files
➕
.taplo.toml(+2 -0)📝
Cargo.lock(+95 -1)📝
psst-core/Cargo.toml(+1 -0)➕
psst-core/src/discord_rpc.rs(+177 -0)📝
psst-core/src/error.rs(+2 -0)📝
psst-core/src/lib.rs(+1 -0)📝
psst-gui/Cargo.toml(+1 -0)📝
psst-gui/src/controller/playback.rs(+153 -0)📝
psst-gui/src/data/config.rs(+4 -0)📝
psst-gui/src/ui/preferences.rs(+35 -0)📝
psst-gui/src/webapi/client.rs(+5 -2)📄 Description
closes #186
Add Discord Rich Presence (RPC) Support
This adds basic support for Discord Rich Presence to psst.
If you enable it and provide a valid Discord Application ID, the app will connect to your running Discord client and show the currently playing track in your profile.
Changes
discord_rpc.rsmodule underpsst-coreto manage the Discord RPC connection in a background thread.discord-presenceas a new dependency.discord_rpc_enable(bool)discord_rpc_app_id(string)PlaybackController:Behavior
Notes
discord-presence.Screenshots
Why
Because Discord status is cool
and now people can see what garbage music you're listening to in real time.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.