-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use XDG_CONFIG_HOME if defined #232
Conversation
Author
|
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 work on this @LuizBranco
Here's a couple thoughts I have:
-
I'm assuming you understand that the way that this is implemented that it is not technically XDG compliant, being that it still falls back to
~/.manifold
. According to the XDG spec, even ifXDG_CONFIG_HOME
is not declared, it should ultimately fall back to~/.config/manifold/config
and not touch the home directory. Is full compliance to the spec the endgame here or are you guys just shooting for partial? If partial is the goal, maybe it would just be easier to add an environment variable for the user to specify directories. -
Regarding your comments on not really being clear where the binaries should go: IMHO, I think they should go into
$XDG_DATA_HOME/manifold/bin/
and then be symlinked into~/.local/bin
(on mac on linux systems). Not totally sure how to go about it on Windows.
Addendum to my last point regarding where binaries should be placed: That is only assuming that this is a user-level installation. If being installed system-wide, it should use the default system-wide location (e.g. |
@LuizBranco we should probably have an OS switch in here, the windows situation is very different. They have an app data directory where this would go. I also like the point about: |
Sorry, closing this one for now since the code didn't address the issue. |
If defined,
XDG_CONFIG_HOME
will take precedence over~/.manifoldrc
for reading and writing the config file.Closes: #227