-
Notifications
You must be signed in to change notification settings - Fork 128
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
Request: Is it possible to follow XDG standards? #52
Comments
The common solution to this is to symlink your dot files in from a version controlled folder. This has worked pretty well for me, since the 90s.
|
I think the biggest problem with applying XDG to OSX apps is that it's not adopted on this platform.
Is the closest approximation. If the symlink solution really bothers you we could definitely look at either:
Or how about
|
I am already using a symlink. However, symlinks do not solve the first part of the problem. If I am not mistaken, according to XDG standards, the configuration files are stored under ~/.config/APP_NAME/CONFIG_FILE, where config files have a name similar to init. |
I am referring to the XDG environment vars. IIRC they are not available by default on OS X. We would need to look in a pre-set list of folders and so .phoenix.d; .local; .config are all fine to use. I will try and get a patch prepared for review tomorrow.
|
Btw I would consider this discussion relevant https://discuss.atom.io/t/why-pollute-with-atom/778/6
|
to add my personal preference here, I would consider using ~/Library/Application Support a mistake. Just because Phoenix is such a developer centric app, and really isn't destined to be a general use GUI app.
|
👍 |
XDG is not a standard on OS X and I don’t think it should. If the problem is about dot-files, why bother adding a new dot-directory which is not used globally? I’m not sure how many apps even support it. The correct place would most definitely be |
Nonetheless, if required, we should support no more than one reasonable option for this. Default to |
@kasper adding a directory under ~/.config is not adding another dot-directory, especially if you remove the dot-config from home directory. |
@khalidchawtany Yeah, I understand this, but for some it might be. I’m okay with it being the secondary location though. |
Yep, it might be. Thanks for this lovely app everyone 👍 |
Cheers! 😄 |
Agreed ~/.config and ~/.local are secondary locations. In any event ~/.phoenix.js should override both. As far as which one of .local or .config takes precedence, unimportant. Let's say it's .config > .local :) Sent from my iPhone
|
Ok, this is implemented. Now the following locations are valid configuration paths and the first existing file will be used.
Any other location can be used by symlinking. I think this should satisfy most opinions and setups. I don’t see the need to support XDG-environment variables directly, as they are not standard on OS X. @khalidchawtany Thanks for raising your opinion! This should solve your original problem with cluttering the home directory and make it easier to have them under version control. 😄 |
Great :) |
Nice
|
I have a lot of dot files in my home directory ( I think we all have) that cause two problems:
Create a git repository in your home directory and do a
git status
to get a feeling of what I mean :)The text was updated successfully, but these errors were encountered: