Open praveenperera opened 2 years ago
Yup!
Actually https://github.com/cantino/mcfly/pull/124 does this, but I've been dragging my feet since ~/.mcfly
seems like a good default to me.
But I'd definitely be fine with making it configurable.
Ya I like ~/.mcfly
as a default. But having it overridable if the env var exists.
How about $MCFLY_DB_DIR
@praveenperera I think I'm going to accept https://github.com/cantino/mcfly/pull/124, given the community pressure. Any thoughts?
@cantino ya that sounds reasonable. Sorry I haven't been able to look at the PRs yet. But I'm assuming it's only changing the default if .mcfly
dir doesn't already exist?
Personally though I've never liked having files in ~/Library/Application Support/
just seems harder to access. I always wondered why Mac data dir isn't in the same place as the linux one.
I suggest following the freedesktop.org XDG base directory specification rather than defaulting ~/.mcfly
. This solves all platform interoperability issues cleanly.
Closed by: https://github.com/cantino/mcfly/pull/244
This issue is still not fixed on macOS.
What issue @utkarshgupta137 ?
The path is not configurable on macOS. The XDG_DATA_HOME
/XDG_CACHE_HOME
is only respected on Linux, not macOS or Windows.
@cantino Are you working on a fix? Or would you accept a PR? If so, should I just replace the locations?
I am not, a PR would be welcome.
https://github.com/cantino/mcfly/pull/349 has been open since April 2023. Any updates on this configuration being baked into McFly?
@o6uoq Closed by: https://github.com/cantino/mcfly/pull/244
I don't think the problem is solved by that PR, since history.db is stored along with configuration. Also, there is no configurability on macOS, since XDG is not respected currently.
Hey @cantino would you accept a PR to make the
Settings::storage_dir_path()
configurable with an ENV var?