Startup failure when $XDG_CONFIG_HOME is unset and ~/.config doesn't exist #112
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
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#112
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
On an OpenBSD system, the $XDG_CONFIG_HOME variable is not set (I believe this is the case on NetBSD as well), and the ~/.config directory does not exist by default. In this case, bombadillo silently fails.
I'd send a PR but there are multiple ways you could fix this so I didn't want to pick one. You could:
There are probably other options I haven't thought of. Anyway if I
mkdir ~/.config
everything works.Thanks for this @jboverf ! I'm going to mark this one urgent and it will get into the next release (which I am guessing may be sooner than later).
I think the good way to go will be to have the function that sets the XDG_CONFIG_HOME as the dir check for empty and then check for that folder existing and build it if not. Using the home dir does make it more complicated.
Glad you got it worked out locally and thanks again for the BSD usage report! I have not gotten to test on any BSD so I am glad to hear it runs, even if there was a hiccup.
I have made the adjustments and they seem to be working well on my machine. I hope you don't mind @jboverf I assigned you as a reviewer on the pr. If you dont have time or interest just let me know and I'll ask asdf or merge in without a second set of eyes. If you do have time and willingness, I would greatly appreciate your thoughts!
The pr is #113
Hey @jboverf sorry you had this issue, but thanks for picking it up and raising it here!
Closed by #113