Use XDG dirs for config data (eg. ~/.config/cwtch/ instead of ~/.cwtch) #69
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#69
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
UserConfigDir
.As a side-note, version 3 of the
dirs
Rust crate is consistent with the GoUserConfigDir
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
https://superuser.com/questions/874901/what-are-the-step-to-move-all-your-dotfiles-into-xdg-directories
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 :)