Add a default grove path to wisteria

Wisteria should default to using a specific grove location on the filesystem unless told otherwise. This would simplify installation and use by making the current working directory irrelevant when you start wisteria. It needs to be possible to override this default with flags (or an environment variable) though. Otherwise, testing wisteria will get a lot more interesting.

Assigned to
4 months ago
4 months ago
feature release-blocker wisteria

~amolith 4 months ago

I don't know if there's another standard for application data but I would put it in something like ~/.arbor so users don't have a folder cluttering up their home dir. As there isn't really anything they can interact with without wisteria or the GUI application, I don't think it needs to be visible. How that would be implemented on Windows, ¯\_(ツ)_/¯

~whereswaldon REPORTED IMPLEMENTED 4 months ago

~amolith Thanks for your input. I deliberated for a while on where to put this. In linux-land, XDG would have you put it in $XDG_DATA_HOME/arbor or something, which would usually be ~/.local/share/arbor. However, following XDG doesn't work on macos, windows, or really even the BSDs. For the time being, I decided to use ~/Documents/ArborHistory as the default. I'm definitely open to changing this location if we really hate this though. This is implemented now! You can get the latest here: https://git.sr.ht/~whereswaldon/wisteria/refs/v0.0.3

~athorp96 4 months ago

I can't speak for Windows, but ~/.arbor/history/ would work for *nix systems. This would be good as well if we store the config in ~/.arbor/config or ~/.arbor/arborrc

Register here or Log in to comment, or comment via email.