Use XDG dirs for config data (eg. ~/.config/cwtch/ instead of ~/.cwtch)
From a beta tester:
Please use the XDG base dir spec for application data: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
eg. ~/.config/cwtch/, ~/.local/share/cwtch/, instead of ~/.cwtch/
For cross-platform compatibility, https://golang.org/pkg/os/#UserConfigDir would be the API for this. See also https://github.com/golang/go/issues/29960 for the discussions re: specific paths on macOS and Windows that led to
As a side-note, version 3 of the
dirs Rust crate is consistent with the Go
UserConfigDir across all platforms (versions prior to that differed on macOS).
for now we seem to be putting a pin in this. After some internal team discussion we view core cwtch data like keys etc don't just belong to this specific instance of a UI but to the cwtch platform and future suite of tools. As such we think its data is more inline with ssh and gpg which both have .ssh and .gpg dirs in the home directory.
however it looks like many apps do take an env var to control their config directory so as a compromise we could work to having the ui respect that
will start work on :)
Cwtch now looks for and will use a
CWTCH_HOME environment variable that can be used to specify your location of choice :)
Deleting a branch is permanent. It CANNOT be undone. Continue?