You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would really like to open spotify: and https://open.spotify.com/ links in Psst instead of having to find the track/playlist/album/artist based on title.
Describe the solution you'd like
I think one solution might be to use a named local socket, using something like https://docs.rs/interprocess . The first running Psst instance would set up a socket and listen for Protobuf, JSON-RPC or some other simple protocol, for commands on what to do. Another Psst instance, with a specific command line - say --url spotify:playlist:xxx would connect to that socket, send a command and terminate.
Describe alternatives you've considered
Another option could be to have the Psst window be a drop-target for text, RegExp match on the text being dropped, and recognize a https://open.spotify.com/ text, parse it, and show/play whatever the link directs to.
Additional context
Having a named socket would open up the possibility of other integrations with Psst, like Stream Decks and such. I suppose that's already somewhat possible using global media hotkeys, but those are always at the mercy of the OS.
The text was updated successfully, but these errors were encountered:
This sounds like a great initiative, I've wanted to handle these links as well but it does require a listener for opening the applications. I think pasting Spotify links into the search bar does direct to the proper album/song.
Is your feature request related to a problem? Please describe.
I would really like to open
spotify:
andhttps://open.spotify.com/
links in Psst instead of having to find the track/playlist/album/artist based on title.Describe the solution you'd like
I think one solution might be to use a named local socket, using something like https://docs.rs/interprocess . The first running Psst instance would set up a socket and listen for Protobuf, JSON-RPC or some other simple protocol, for commands on what to do. Another Psst instance, with a specific command line - say
--url spotify:playlist:xxx
would connect to that socket, send a command and terminate.Describe alternatives you've considered
Another option could be to have the Psst window be a drop-target for text, RegExp match on the text being dropped, and recognize a
https://open.spotify.com/
text, parse it, and show/play whatever the link directs to.Additional context
Having a named socket would open up the possibility of other integrations with Psst, like Stream Decks and such. I suppose that's already somewhat possible using global media hotkeys, but those are always at the mercy of the OS.
The text was updated successfully, but these errors were encountered: