<?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: Script to change settings in Desktop (Mac)</title>
    <link>https://community.spotify.com/t5/Desktop-Mac/Script-to-change-settings/m-p/4461324#M532292</link>
    <description>&lt;P&gt;Alright, so after diving deep into the rabbit hole I finally found a way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that on Mac, the settings file for Spotify is located in&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;$HOME/Library/Application Support/Spotify/prefs.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the proxy is deactivated, you can see the line :&amp;nbsp;&lt;STRONG&gt;network.proxy.mode=1.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To activate the proxy, you can change the settings to mode 2 instead (&lt;STRONG&gt;network.proxy.mode=2).&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now all is left ot do is to automate this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can find a complete script on &lt;A title="Automated Spotify proxy settings" href="https://gist.github.com/jlengrand/ec2fff0f741ae0a59a7f203d9ffee348" target="_blank"&gt;Github&lt;/A&gt;.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In short, the script&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Checks the preference file exists&lt;/LI&gt;&lt;LI&gt;proxy line of the file (depending you want it on or off)&lt;/LI&gt;&lt;LI&gt;Restarts Spotify in case it was running&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is useful for someone :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 22 Apr 2018 17:49:33 GMT</pubDate>
    <dc:creator>jlengrand</dc:creator>
    <dc:date>2018-04-22T17:49:33Z</dc:date>
    <item>
      <title>Script to change settings</title>
      <link>https://community.spotify.com/t5/Desktop-Mac/Script-to-change-settings/m-p/4446246#M531825</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Spotify desktop on my MBP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the office, we use a proxy and I have configured spotify to go through the proxy. At home, I don't use anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means that every day, I have to go back to my settings, disable / enable the proxy and restart spotify. This is very annoying.&lt;/P&gt;&lt;P&gt;So annoying in fact that I started using the web player at home . . .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to know if there is a way to change the settings of spotify without having to go through the UI. For example in a file, or something equivalent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would allow me to write a simple script to enable / disable the proxy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions are welcome of course.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2018 07:23:55 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Mac/Script-to-change-settings/m-p/4446246#M531825</guid>
      <dc:creator>jlengrand</dc:creator>
      <dc:date>2018-04-08T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script to change settings</title>
      <link>https://community.spotify.com/t5/Desktop-Mac/Script-to-change-settings/m-p/4461324#M532292</link>
      <description>&lt;P&gt;Alright, so after diving deep into the rabbit hole I finally found a way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that on Mac, the settings file for Spotify is located in&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;$HOME/Library/Application Support/Spotify/prefs.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the proxy is deactivated, you can see the line :&amp;nbsp;&lt;STRONG&gt;network.proxy.mode=1.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To activate the proxy, you can change the settings to mode 2 instead (&lt;STRONG&gt;network.proxy.mode=2).&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now all is left ot do is to automate this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can find a complete script on &lt;A title="Automated Spotify proxy settings" href="https://gist.github.com/jlengrand/ec2fff0f741ae0a59a7f203d9ffee348" target="_blank"&gt;Github&lt;/A&gt;.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In short, the script&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Checks the preference file exists&lt;/LI&gt;&lt;LI&gt;proxy line of the file (depending you want it on or off)&lt;/LI&gt;&lt;LI&gt;Restarts Spotify in case it was running&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is useful for someone :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 22 Apr 2018 17:49:33 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Mac/Script-to-change-settings/m-p/4461324#M532292</guid>
      <dc:creator>jlengrand</dc:creator>
      <dc:date>2018-04-22T17:49:33Z</dc:date>
    </item>
  </channel>
</rss>

