-
-
Notifications
You must be signed in to change notification settings - Fork 498
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default keys and aliases location on non-Unix platforms #15
Comments
FWIW, It looks like the Go team had a lot of discussion on this topic for the 1.13 release and produced os.UserConfigDir. Perhaps |
I scanned the discussion there and it seems like a reasonable approach. For my Rust impl to be compatible I'd need to manually detect macOS and handle it separately because of how the |
I think |
See FiloSottile/age#15 for more details.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The specification gives the Unix path
~/.config/age/*
as the default location it looks for keys and aliases. How should this map to Windows and macOS? The directories Rust crate (which aims to follow per-OS conventions) appears to indicate the following as being approximately OS-shaped:C:\Users\Alice\AppData\Roaming\age tool\age\config\*
/Users/Alice/Library/Preferences/com.age-tool.age/*
We could also go simpler by just using the known folders for program settings as the base:
C:\Users\Alice\AppData\Roaming\age\*
/Users/Alice/Library/Preferences/age/*
Thoughts? Is there somewhere else these should go? Are users expected to be editing these by hand (in which case maybe a Documents-like folder should be used, which is more accessible)?
The text was updated successfully, but these errors were encountered: