You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
We could also go simpler by just using the known folders for program settings as the base:
Windows: C:\Users\Alice\AppData\Roaming\age\*
macOS: /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:
str4d
changed the title
[spec] Default key location on non-Unix platforms
[spec] Default keys and aliases location on non-Unix platforms
Oct 11, 2019
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 age should rely on that?
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 directories crate differs, but that's not too bad.
FiloSottile
changed the title
[spec] Default keys and aliases location on non-Unix platforms
Default keys and aliases location on non-Unix platforms
Nov 28, 2019
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: