Closed EngineerDali closed 8 months ago
The part that is failing is the block here:
"xfce4-terminal")
term_font="$(awk -F '=' '/^FontName/{a=$2}/^FontUseSystem=TRUE/{a=$0} END {print a}' \
"${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")"
[[ "$term_font" == "FontUseSystem=TRUE" ]] && \
term_font="$(gsettings get org.gnome.desktop.interface monospace-font-name)"
term_font="$(trim_quotes "$term_font")"
# Default fallback font hardcoded in terminal-preferences.c
[[ -z "$term_font" ]] && term_font="Monospace 12"
;;
It's trying to read a config file that doesn't exist according to your log on line 1531, so neofetch is falling back to the default. I did some searching and found this reddit post saying that the config format was changed, and the new file is .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-terminal.xml
. So an update to that function will be required. I'm about to go to bed, but can work on it when I wake up.
Sorry if I just spammed you with emails. Made a PR that will have neofetch
check for the new config, try to parse that, and if that file isn't found will check for the old config. It seems to be working for me, but a second look would be appreciated before I merge it.
Thanks, no worries! It works for me as well :)
Describe the bug
The value displayed by "term_font" is incorrect. As seen in the screenshot, it still shows the default one for XFCE.
Expected behavior
The correct font being displayed (shown on the right in the screenshot)
Screenshots
Config file
cp ~/.config/neofetch/config.conf conf.txt
conf.txt
here to upload it. conf.txtVerbose log
neofetch -vv 2> neofetch.log
neofetch.log
here to upload it. neofetch.log