-
Notifications
You must be signed in to change notification settings - Fork 61
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
Bad config location on MacOS #297
Comments
|
On MacOS we use the standard directories. This is done via the dirs crate. I have no idea if this is ideal or not though, as I'm not a MacOS user. Is this not a standard location on MacOS?
Yes, but it's deprecated. I'll probably remove it before v1.0. At the very least we should update the README to mention the standard directories on MacOS. Currently it reads as if we always use |
Let's keep this open until we at least update the README. |
I'll update the readme, but I'm not sure this is considered a fix. I would think that most IRC users are familiar with the UNIX filesystem, and would prefer the option to use XDG_CONFIG_HOME. I can tackle the issue if I get a bit of direction. |
@KarlWithK It seems that the issue is the Is that See here: tiny/crates/tiny/src/config.rs Line 152 in 6036354
|
I'm not a Mac user myself and I don't know the conventions on macOS, so in the past I trusted I did a quick search. It seems like using As long as we use the recommended path(s) by default (i.e. I say we update the |
847dfff updates README to mention default config path on macOS. |
Installed tiny via:
cargo install --git https://github.com/osa1/tiny
$XDG_CONFIG_HOME
is set to/Users/name/.config
$HOME
is set to/Users/name
However when running for the first time:
tiny couldn't find a config file at "/Users/name/Library/Application Support/tiny/config.yml", and created a config file with defaults.
And tiny creates a config file in that location. Subsequent runs will continue to read from that location (env variables still set / config.yml copy-pasted to
~/.config/tiny/config.yml
Why is the config file in this obscure location?
The text was updated successfully, but these errors were encountered: