Open OriginCode opened 1 month ago
Yeah it seems to be something wrong when $XDG_CONFIG_HOME
is empty.
According to https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html , the value should default to $HOME/.config
if not set.
Yeah, need to add validation for $XDG_CONFIG_HOME.
Hi @OriginCode , fix is merged. Please try again with the master branch
Hi @OriginCode , fix is merged. Please try again with the master branch
Yeah it doesn't segfault now as it just cannot find the file lol.
You might want to consider implement the spec to check $HOME/.config
as a fallback. There are distros that do not manually set $XDG_CONFIG_HOME
.
Checking your point...
Hi @OriginCode , thank you for your feedback. Related merge request is created to the original cava upstream. See karlstav/cava#565. Once it's done I'll do sync with libcava and bump libcava version.
Hi @OriginCode , please check with the new commits. Now it should be fine. If it's so, please close the issue
@LukashonakV It still doesn't recognize $XDG_CONFIG_HOME
when the variable is empty :(
Also there seems to be some weird issue in the log (see the path in the error message, it's not the same as in my config):
Hi @OriginCode, can you explain what you're expecting from cava when the environment variable is not defined in the system ? Thank you for response, I reproduced the issue with the garbage in the final config path. Need to check what's wrong with it.
@LukashonakV It should look for $HOME/.config
as fallback to $XDG_HOME_CONFIG
.
Tested with
--buildtype=debug
.waybar -l trace
:gdb waybar
:Seems to be related to config file loading?