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
Add support for XDG Base Directory Specification #69
Comments
Thanks for sharing this idea! It seems to me to be a more generalized version of #5. The XDG Spec has some weird requirements, such as having to detect when a user logs on, and creating a directory at that time. We would probably not be able to to that. But we could at least know about the environment variables and look for config files in the right places. I think in addition to precedence etc. it is necessary to be able to read more than 1 config file. In that way, we could have the config that is shipped with boxes, and user-specific files which add to that. |
I must have misunderstood #5. I thought it was asking to be able to choose which config file to use, e.g., specifying it on the command line.
That's all I was really asking for.
Yes. I was thinking I might want to edit a couple of the styles to include vim's folding markers. That's not something most people would want, I believe, but it'd save me a couple of minutes a year. :D |
Well, never mind! (We have the -f option already.) I'll keep both issues open until we have this sorted out. Please feel free to contribute! These days, boxes evolves mainly through contributions. |
If I were at all competent with programming, I would. This looks like a fun project. |
I'm actually looking at this feature request again. XDG ist somewhat overengineered and not very precise, it seems, and there is discussion on the best degree to which to implement it. But it also seems to me that we should implement at least some of it. My current take is this:
The XDG environment variable Whenever the type is dir in the table above, in that directory we'll look for these files, in this order:
As soon as the first valid file is found, we use that and stop the search. What do you think? Would this be sufficient? |
I think this would be excellent. |
Ok, I am using this comment to document the new behavior until it is done. So this comment may change a few times.
The XDG environment variable Whenever the type is dir in the table above, in that directory we'll look for these files, in this order:
As soon as the first valid file is found, we use that and stop the search. |
for config file discovery. Also, the config file is searched in more places, and can have more names. Details in issue comments.
for config file discovery. Also, the config file is searched in more places, and can have more names. Details in issue comments.
for config file discovery. Also, the config file is searched in more places, and can have more names. Details in issue comments.
This means we have some XDG support on Windows, too, although some global locations like /etc/xdg are unlikely to exist.
for config file discovery. Also, the config file is searched in more places, and can have more names. Details in issue comments.
This means we have some XDG support on Windows, too, although some global locations like /etc/xdg are unlikely to exist.
Done. This will be in the v2.1.0 release. |
for config file discovery. Also, the config file is searched in more places, and can have more names. Details in issue comments.
This means we have some XDG support on Windows, too, although some global locations like /etc/xdg are unlikely to exist.
for config file discovery. Also, the config file is searched in more places, and can have more names. Details in issue comments.
This means we have some XDG support on Windows, too, although some global locations like /etc/xdg are unlikely to exist.
By the way, code for the already completed new features is collected on the rc_2.1.0 branch, in case you want to have a look. |
On 2021-03-19 16:04, Thomas Jensen wrote:
By the way, code for the already completed new features is collected
on the rc_2.1.0 [1] branch, in case you want to have a look.
Thanks, I'll do that. :)
…--
Home: http://nlphilia.com * Blog: http://nlphilia.net
Registered Linux User #450983 * Ubuntu Counter Project #10548
|
Boxes currently looks in
$HOME
for its user configuration file. This practice clutters$HOME
with countless dotfiles and makes organization difficult. The XDG Base Directory Specification helps to solve this problem by putting a program-specific directory under (usually)$HOME/.config
. I would love to see boxes support this.I am currently running boxes version 1.2 on Ubuntu 18.04.4 LTS.
The text was updated successfully, but these errors were encountered: