diff --git a/_posts/2018-04-23-automating-spotify-proxy-settings.markdown b/_posts/2018-04-23-automating-spotify-proxy-settings.markdown index 6bc561a..fcabc93 100644 --- a/_posts/2018-04-23-automating-spotify-proxy-settings.markdown +++ b/_posts/2018-04-23-automating-spotify-proxy-settings.markdown @@ -24,19 +24,18 @@ comments: [] I'm a **BIG** fan of **[Spotify](https://www.spotify.com/)**. I use it every day, hours on end. I like the fat client though, I find the web version way too buggy and unstable. - +

At ING, we use a HTTP proxy and I have configured Spotify to go through the proxy. At home, I don't use anything. This means that every day, I have to go back to my settings, disable / enable the proxy and restart Spotify. This is very annoying. - +

So annoying in fact that I started using the web player at home, to my disappointment. - +

Finally, it go me tired enough so I decided to dig deeper into the issue and find a solution. **It had to be possible to automate this.** - - +

The first step was to find the location of the config file. On my Macbook, it is located in __$HOME/Library/Application Support/Spotify/prefs__. In this file, I saw the line : __network.proxy.mode=1__. The rest is child's play - +

Here is the final script I came out with to enable/disable spotify's proxy settings. I called it **spotiProxy** ```bash @@ -84,4 +83,9 @@ It's usage is very simple : * It will set you settings accordingly, and restart Spotify if it was already running. * Enjoy! -This script is run automatically every time I arrive at home or at the office. Nothing to do any more. Joy! \ No newline at end of file +This script is run automatically every time I arrive at home or at the office. Nothing to do any more. Joy! + +

+If you want more info, you can check out the related [Spotify forum post](https://community.spotify.com/t5/Desktop-Mac/Script-to-change-settings/m-p/4446246#M531825) or [the gist on github](https://gist.github.com/jlengrand/ec2fff0f741ae0a59a7f203d9ffee348). +

+See you next time!