<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [Guide] Play Spotify links in running client in Desktop (Linux)</title>
    <link>https://community.spotify.com/t5/Desktop-Linux/Guide-Play-Spotify-links-in-running-client/m-p/4647375#M17075</link>
    <description>&lt;P&gt;An alternative to &lt;STRONG&gt;qdbus&lt;/STRONG&gt; is &lt;STRONG&gt;dbus-send&lt;/STRONG&gt;, which is probably more commonly installed:&lt;/P&gt;&lt;PRE&gt;dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri string:'spotify:track:1WNPappMd13lY5o9POZ4gU'&lt;/PRE&gt;&lt;P&gt;replace &lt;STRONG&gt;spotify:track:...&lt;/STRONG&gt; with &lt;STRONG&gt;%U&lt;/STRONG&gt; for use in the desktop entry file.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jan 2019 16:29:06 GMT</pubDate>
    <dc:creator>epinephrine</dc:creator>
    <dc:date>2019-01-06T16:29:06Z</dc:date>
    <item>
      <title>[Guide] Play Spotify links in running client</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Guide-Play-Spotify-links-in-running-client/m-p/4647308#M17074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After combining a few ideas, I got my firefox to open spotify links à la&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://open.spotify.com/track/4kLyPZvYQE2N1K2rFQ3e6a?si=sLbFkVGvS6izC2-6J74iZQ&lt;/PRE&gt;&lt;P&gt;directly in my running Linux Spotify client. Here's how:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Install Greasemonkey (Firefox) or Tampermonkey (Chrome) and then &lt;A href="https://greasyfork.org/en/scripts/38920-spotify-open-in-app" target="_blank"&gt;this script&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I modified it to not even open the web-player but directly redirect to spotify by adding the line&lt;/P&gt;&lt;PRE&gt;// @run-at      document-start&lt;/PRE&gt;&lt;P&gt;in the header section of the script. I sent a request to the author to incorporate that change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a new spotify URI handler at &lt;STRONG&gt;~/.local/share/applications/spotify-open.desktop&lt;/STRONG&gt; with the content&lt;/P&gt;&lt;PRE&gt;[Desktop Entry]
Type=Application
Name=Open in Spotify
GenericName=Music Player
Icon=spotify-client
Exec=qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify&lt;/PRE&gt;&lt;P&gt;Make sure you have &lt;STRONG&gt;qdbus &lt;/STRONG&gt;installed. On Arch Linux, this is found in package &lt;STRONG&gt;qt5-tools&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you click on any &lt;STRONG&gt;open.spotify.com&lt;/STRONG&gt; link, it will automatically play in your client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 14:33:54 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Guide-Play-Spotify-links-in-running-client/m-p/4647308#M17074</guid>
      <dc:creator>epinephrine</dc:creator>
      <dc:date>2019-01-06T14:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: [Guide] Play Spotify links in running client</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Guide-Play-Spotify-links-in-running-client/m-p/4647375#M17075</link>
      <description>&lt;P&gt;An alternative to &lt;STRONG&gt;qdbus&lt;/STRONG&gt; is &lt;STRONG&gt;dbus-send&lt;/STRONG&gt;, which is probably more commonly installed:&lt;/P&gt;&lt;PRE&gt;dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri string:'spotify:track:1WNPappMd13lY5o9POZ4gU'&lt;/PRE&gt;&lt;P&gt;replace &lt;STRONG&gt;spotify:track:...&lt;/STRONG&gt; with &lt;STRONG&gt;%U&lt;/STRONG&gt; for use in the desktop entry file.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 16:29:06 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Guide-Play-Spotify-links-in-running-client/m-p/4647375#M17075</guid>
      <dc:creator>epinephrine</dc:creator>
      <dc:date>2019-01-06T16:29:06Z</dc:date>
    </item>
  </channel>
</rss>

