Add support for XDG config home directory #77
No reviewers
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#77
Loading…
Reference in New Issue
No description provided.
Delete Branch "add-xdg-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add functionality requested in #55.
Before this is merged in, we will need to decide on the default in the repo. Currently it is set to use XDG config home for demonstration purposes.
There is a test for this, and while they helped with development they are not good and will fail. They could be useful, but would require mocking things.
A couple of questions:
I do not think the documentation is too long. A big goal for me with this project is that it doesn't fall into what C code was for me for so long: a big mystery that would always break when I tried to compile it. I think thorough docs like this may allow a non-programmer (or novice) to edit and build the system.
Yes.
My preference for default is the home folder. That said, it is a personal preference. I had never heard of the XDG foldering setup... if a lot of people use this, it may be a good call. What do you think?
Thanks for the feedback.
Regarding the default settings, I tried searching for more information about people's preferences. I found that:
I'd recommend searching on the topic to see if you get the same impression.
Maybe there is another issue though - is there a way to keep defaults each time you have to
git pull
to get the latest version?OK, I've done some more work on this. I'll point out what it does and does not do, so we are clear on what is changing and what might be considered outstanding.
What it does:
What it doesn't do:
i.e. ~/.config/bombadillo.ini
)The first point should be handled in some release documentation, and the other two add a lot of complexity.
I'd recommend with going ahead as is, based on my previous comments. If you still have a strong preference to keep the default
configlocation
path as the home directory, I'd be happy to stay with that too.If it helps, you can use the command
XDG_CONFIG_HOME=~ ./bombadillo
to override just for Bombadillo.I approve this update. I'll add
XDG_CONFIG_HOME=~
as an export in my shell.@ -200,3 +200,3 @@
Writes data from a given link id in the current document to a file. The file is named by the last component of the url path. If the last component is blank or fI/fP a default name will be used. The file saves to the directory set by the fIsavelocationfP setting. fIwfP can be entered rather than the full fIwritefP.
.SH FILES
fBbombadillofP keeps a hidden configuration file in a user's home directory. The file is a simplified ini file titled fI.bombadillo.inifP. It is generated when a user first loads fBbombadillofP and is updated with bookmarks and settings as a user adds them. The file can be directly edited, but it is best to use the SET command to update settings whenever possible. To return to the state of a fresh install, simply remove the file and a new one will be generated with the fBbombadillofP defaults. On some systems an administrator may set the configuration file location to somewhere other than a user's home directory. If you do not see the file where you expect it, contact your system administrator.
fBbombadillofP keeps a hidden configuration file in a user's XDG configuration directory. The file is a simplified ini file titled fI.bombadillo.inifP. It is generated when a user first loads fBbombadillofP and is updated with bookmarks and settings as a user adds them. The file can be directly edited, but it is best to use the SET command to update settings whenever possible. To return to the state of a fresh install, simply remove the file and a new one will be generated with the fBbombadillofP defaults. On some systems an administrator may set the configuration file location to somewhere other than the default setting. If you do not see the file where you expect it, or if your settings are not being read, contact your system administrator.
Something maybe worth noting at the end is that you can run
:check configlocation
to see where it is currently set. You just cannot runset
to alter that once bombadillo is compiled.Unless you have anything you'd like to add, I'll merge this in (or you can when you see this comment, either way). Also, not sure if you saw but you have mail at rtc from me. The first one has been largely cleared up as we have worked through the issues and PRs here so can mostly be disregarded. Let me know re: the last one.
Thanks, I'll merge this in once I correct the change commits (I tried to update it so it could merge without tripling the number of commits). I'll also check my email soon!
WIP Add support for XDG config home directoryto Add support for XDG config home directoryUh fix for #55