<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Per-platform database location path ?]]></title><description><![CDATA[<p dir="auto">I tried to dig into where the db path was being set, but it seem's is being handled differently on every platform ?  On macOS (which I'm currently typing on) it is obtained by <code>GetApplicationSupportPath()</code> but that's in mac_startup.h/.mm only and a quick search didn't even show something similar for Windows (I'm sure I'm not using the magic necessary string search, but I didn't find any win_startup.h/mm so I'm guessing each platform kludges along in it's own way in this respect ?)</p>
<p dir="auto">My goal was to see if I could, without too much pain, add a configurable "database location" feature to Strawberry settings so I could easily make Strawberry launchable from a separate directory for each platform (e.g.  "<code>./Strawberry/win/strawberry.exe</code>", "<code>./Strawberry/mac/Strawberry.app</code>", and "<code>./Strawberry/lin/strawberry*</code>" each located in a common <code>Strawberry</code> directory on an external exfat-formatted USB  drive, then configure each platform binary to point the same db, e.g. "<code>../db/strawberry.db</code>", but it's not looking so slam-dunk.</p>
<p dir="auto">I'm a self-taught "hack it until it does what I need" guy and not a trained dev, so I'm just stabbing in the dark here.</p>
<p dir="auto">Any pointers to how I might accomplish what I'm trying to do ?  And if the answer is "no" then I'll humbly take my marbles to the requests forum to toss them in the air, then move on <img src="https://forum.strawberrymusicplayer.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=faqqna7874c" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Thanks !</p>
<p dir="auto">-=dave</p>
<p dir="auto">EDIT: Context - I hacked a USB3 hub+uSD cardreader inside a mini back-packable MIDI DJ Controller (<a href="https://github.com/mixxxdj/mixxx/wiki/Numark-Party-Mix" rel="nofollow ugc">Numark Party Mix</a>) that has my Mixxx library on it so trying to get the ability to plug the controller into any Mac, Win, (and maybe Linux ?) box and be into both my Strawberry (for general song play and smart playlist features) or my Mixxx deejay libary.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/topic/419/per-platform-database-location-path</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 19:06:50 GMT</lastBuildDate><atom:link href="https://forum.strawberrymusicplayer.org/topic/419.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Oct 2021 03:36:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Per-platform database location path ? on Sun, 31 Oct 2021 04:23:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/1">@jonas</a> thanks !</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/1154</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/1154</guid><dc:creator><![CDATA[fiveangle]]></dc:creator><pubDate>Sun, 31 Oct 2021 04:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Per-platform database location path ? on Fri, 29 Oct 2021 19:22:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/717">@fiveangle</a><br />
The GetApplicationSupportPath() function isn't used for anything.<br />
Strawberry uses <code>QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation)</code><br />
The DB path is set here:<br />
<a href="https://github.com/strawberrymusicplayer/strawberry/blob/master/src/core/database.cpp#L81" rel="nofollow ugc">https://github.com/strawberrymusicplayer/strawberry/blob/master/src/core/database.cpp#L81</a></p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/1148</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/1148</guid><dc:creator><![CDATA[jonas]]></dc:creator><pubDate>Fri, 29 Oct 2021 19:22:55 GMT</pubDate></item></channel></rss>