Per-platform database location path ?
fiveangle last edited by fiveangle
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
GetApplicationSupportPath()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 ?)
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. "
./Strawberry/mac/Strawberry.app", and "
./Strawberry/lin/strawberry*" each located in a common
Strawberrydirectory on an external exfat-formatted USB drive, then configure each platform binary to point the same db, e.g. "
../db/strawberry.db", but it's not looking so slam-dunk.
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.
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 :)
EDIT: Context - I hacked a USB3 hub+uSD cardreader inside a mini back-packable MIDI DJ Controller (Numark Party Mix) 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.
jonas last edited by
The GetApplicationSupportPath() function isn't used for anything.
The DB path is set here:
fiveangle last edited by
@jonas thanks !