-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Bug report] Mac not using .config
for default config directory
#62
Comments
Briefly thought - oh wait, why don't I just set the XDG var as a simple workaround! But apparently this doesn't work either: EDIT - oh right, reading the issue shared above, it was never going to work. Looks like the |
Thanks for creating the issue. I will create an override for this What you can do in the meantime is to add this in your
|
Ah yeah, didn't think about setting an alias! (line 3 needs the prefix Don't think it's typical for MacOS developers to have the XDG_* vars set, so I dare say others might come across this issue; certainly many other tools I use (bat, neovim, yabai, kitty, gh) all seem to "default" to use ~/.config without any extra setup. So ideally the Mac version of the tool would just default to use .config as well (which appears to be the behaviour of the etcetera Rust libarary). But the above workaround and an override of Thanks for your help, much appreciated, and looking forward to pull out a bunch of ansible (to clone base16 git repos) and dotfiles and replace it all with tinty! |
I've created a PR here, I'll leave it up for a day or so and merge if no one has any comments. |
Just merged, let me know if you run in to any bugs with it! |
Describe the bug
The default configuration file location on MacOS isn't working as per the documentation, it's using a MacOS Library location that isn't commonly used for CLI config files
(Unsure if a bug or an issue - apologies if this isn't in the best category!)
Expected behavior
Assuming that
XDG_CONFIG_HOME
env variable has not been set, the default configuration file location should be~/.config/tinted-theming/tinty/config.toml
Screenshots
System
Operating system: MacOS 14.5
Terminal: Kitty
Minimal configuration file
Ironically, I don't think the config file matters here, given tinty isn't finding / using it 😬
Additional context
I did a little digging around to see if I could understand this better.
I found a similar problem / solution in another Rust project here - nushell/nushell#8682
My understanding is the directories library has drawn the line under this as "not a bug" - dirs-dev/directories-rs#47 (comment)
Nonetheless, I don't seem to have hit this issue with other tooling; and note the above PR moved to another directory crate to remedy this issue.
I'm not a Rust developer, so hard for me to dig much deeper, but thanks for your review and consideration
The text was updated successfully, but these errors were encountered: