<?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: Is it possible to start Spotify with a different .config? in Desktop (Linux)</title>
    <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310646#M6036</link>
    <description>&lt;P&gt;Of course anything which works is fine. And perhaps the rather brutal solution to reset $HOME is the only way out of this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the directories ~/.config and ~/.cache are not not random choices, they are part of the freedesktop specification. According to this it should be possible to change the config directory ~/.config using the XDG_CONFIG_HOME environment variable. Likewise, relocating ~/.cache should be possible using XDG_CACHE_HOME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work it s plain bug IMHO, since the usage of ~/.cache and ~/.config is so clearly defined in the &lt;A href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html" target="_self"&gt;spec&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Mar 2013 13:50:16 GMT</pubDate>
    <dc:creator>leamas</dc:creator>
    <dc:date>2013-03-03T13:50:16Z</dc:date>
    <item>
      <title>Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310514#M6032</link>
      <description>&lt;P&gt;I run native Linux client 64-bit. In the latest version I can't search for anything, because it crashes with 'segmentation fault' as soon as I type anything in the search field. Therefore I repackaged an older version, removed the files that conflicts with the newer version and renamed it spotify-legacy, so that I can have both installed. The older version can't play local files, therefore I can't have them shown in that version, because it stops when it come to a local file. So I want to have different .config for them, instead of change in preferences everytime I need to switch which version to use. There is nothing in preferences about using a different .config (only about cache).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to start Spotify with a command that tells it to use a different config folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2013 12:12:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310514#M6032</guid>
      <dc:creator>lenanel</dc:creator>
      <dc:date>2013-03-03T12:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310528#M6033</link>
      <description>&lt;P&gt;Hi, if I am remembering correctly (I am probably wrong) the cache folder also contains the configuration data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it doesn't, then I'm afraid there is no way to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Liam&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2013 12:19:58 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310528#M6033</guid>
      <dc:creator>Liam</dc:creator>
      <dc:date>2013-03-03T12:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310552#M6034</link>
      <description>&lt;P&gt;Cache is ~/.cache/spotify and config is ~/.config/spotify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inspired by how I start two instances of dropbox I just tried this:&lt;/P&gt;
&lt;P&gt;HOME=$HOME/.config/spotify-legacy /usr/share/spotify/start-spotify &lt;/P&gt;
&lt;P&gt;And it works!!! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Now it puts both .cache and .config in ~/.config/spotify-legacy.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2013 12:39:51 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310552#M6034</guid>
      <dc:creator>lenanel</dc:creator>
      <dc:date>2013-03-03T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310560#M6035</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/332094"&gt;@lenanel&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Cache is ~/.cache/spotify and config is ~/.config/spotify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inspired by how I start two instances of dropbox I just tried this:&lt;/P&gt;
&lt;P&gt;HOME=$HOME/.config/spotify-legacy /usr/share/spotify/start-spotify&lt;/P&gt;
&lt;P&gt;And it works!!! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Now it puts both .cache and .config in ~/.config/spotify-legacy.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks for sharing your solution!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2013 12:44:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310560#M6035</guid>
      <dc:creator>Liam</dc:creator>
      <dc:date>2013-03-03T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310646#M6036</link>
      <description>&lt;P&gt;Of course anything which works is fine. And perhaps the rather brutal solution to reset $HOME is the only way out of this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the directories ~/.config and ~/.cache are not not random choices, they are part of the freedesktop specification. According to this it should be possible to change the config directory ~/.config using the XDG_CONFIG_HOME environment variable. Likewise, relocating ~/.cache should be possible using XDG_CACHE_HOME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work it s plain bug IMHO, since the usage of ~/.cache and ~/.config is so clearly defined in the &lt;A href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html" target="_self"&gt;spec&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2013 13:50:16 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310646#M6036</guid>
      <dc:creator>leamas</dc:creator>
      <dc:date>2013-03-03T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310680#M6037</link>
      <description>&lt;P&gt;I tried this:&lt;/P&gt;
&lt;P&gt;XDG_CONFIG_HOME=$HOME/.config/spotify-legacy /usr/share/spotify/start-spotify&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before that I renamed ~/.config/spotify-legacy and added .old. It created a new folder ~/.config/spotify-legacy and put a file&amp;nbsp; Trolltech.conf there, but no folder for .config. It used the same settings as I have in ~/.config/spotify. So I guess this means "it doesn't work"...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to echo some of the variables from your link, but none of them were set. I'm running Linux From Scratch, so it could of course be a problem with my system... &lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2013 14:27:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310680#M6037</guid>
      <dc:creator>lenanel</dc:creator>
      <dc:date>2013-03-03T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to start Spotify with a different .config?</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310704#M6038</link>
      <description>&lt;P&gt;They are normally not set, that's as expected. Reading the spec, this means that we use ~/.config and ~/.cache in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More worrying is that a simple 'strings' on the spotify binary shows no sign of any XDG_* string. libcef.so has XDG_CACHE_HOME&amp;nbsp; (and XDG_DATA_HOME, not used by spotify) but not XDG_CONFIG_HOME. So it seems likely that spotify does not respect XDG_CACHE_HOME and XDG_CONFIG_HOME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which, in that case, is a bug. If there was a bugtracker, it should have been reported there. But there isn't &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Anyway, something to be fixed to next release. Until then, relocating $HOME seems to be the only way unless the devs comes up with more info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: changing $HOME is actually not without risks e. g., if spotify spawns&amp;nbsp; new process. Generally, $HOME is expected to be, well , $HOME &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; A safer bet would be to create one or two shell wrappers which symlinked the alternative config/cache directories to ~/.config/spotify and&amp;nbsp; /.cache/spotify. Just my 5 öre...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT2: I've got a confirmation that spotify does not respect XDG_CACHE_HOME and XDG_CONFIG_HOME. from the devs.&amp;nbsp; It's a bug, probably fixed in next release.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 13:27:54 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Is-it-possible-to-start-Spotify-with-a-different-config/m-p/310704#M6038</guid>
      <dc:creator>leamas</dc:creator>
      <dc:date>2013-03-05T13:27:54Z</dc:date>
    </item>
  </channel>
</rss>

