powercord-org / powercord

A lightweight @discord client mod focused on simplicity and performance.
MIT License
1.2k stars 147 forks source link

[Feature Request] Spotify controls with playerctl #528

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the feature request On Linux, there is playerctl utility, which can control playing. I think that it is possible to do spotify controls for non-premium users in powercord with playerctl. E.g.: there is something playing in spotify. When i type playerctl pause in terminal, music pauses, so it works.

What Plugin would it be for? Spotify

Expected behavior Not applicable

TheArcaneBrony commented 3 years ago

Probably a wontfix due to spotify's own rules.

cyyynthia commented 3 years ago

v3 plans are to completely block access to OS-level APIs to plugins due to huge security issues that can arise from having such capacities. That means plugins will not be able to run an external executable, communicate with other processes though system-level pipes (unix pipes, windows' named pipes, ...), making implementing this not possible for the Spotify plugin.

We also prefer to avoid platform-specific code whenever possible.