-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make windows config location more sensible #1857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, I've got just some minor comments for the changes made here.
It looks like this PR is only using dirs
for Windows at the moment, but xdg
is still used for macOS. I'm not familiar with the exact functionality of dirs
, but would it be possible to make use of it on Linux too, so we can reduce the number of dependencies?
Using They follow the same usual case if I think it's probably not worth the effort. |
b5eb7e8
to
ccfe863
Compare
The change log entry has been reworded and some minor code refactoring has been done.
ccfe863
to
d2b3f6e
Compare
The current behavior incorrectly created the `alacritty/alacritty.yml` directory, instead of making `alacritty.yml` a file. This has been fixed by creating all directories for the parent of the target file, instead of the file itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now. Thanks!
Contrary to my initial idea this does not remove platform specific code, mostly because after dealing with fallbacks and supporting the old windows location it's not worth it.
This changes the configuration file location from (in fallback order):
%HOME%\alacritty.yml
%USERPROFILE%\alacritty.yml
GetUserProfileDirectory()\alacritty.yml
To:
%APPDATA%\Roaming\alacritty\alacritty.yml
If a configuration file is found in the old location a warning is emitted pointing to the new location.
Fixes #1660