-
Notifications
You must be signed in to change notification settings - Fork 481
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
Highlightings doesn't render when using --load-config #517
Comments
The problem is that the command line flags are always parsed and loaded after other config files being loaded, because we need the command line flags to override other flags set before. That's also the same reason why an strange environment variable
Oh, that explains why I can't reproduce the issue. |
Oh okay, that's explains a lot. So I think the current solution (for me atleast lol) just to rename config.conf file to something else for not being loaded, and load custom config files by using Anyways, glad to hear that my post was helpful, and now you can reproduce the issue! Goodluck in development! |
Does |
Well yes, config.conf file doesn't being loaded first, and only my config file that I've set in So I think the current best way, is just to put |
Please test the latest dev build |
General description of bug:
I have multiple config files in my $HOME/.config/fastfetch/ directory, and I want to load these different config files by using
--load-config
.But I've noticed that if in $HOME/.config/fastfetch/ directory, there is config.conf or config.jsonc file when trying to use
--load-config
. File config.conf/config.jsonc will be loaded first, only after config.conf/config.jsonc file was loaded, will be loaded config file that was set when using--load-config
.Which causes issues with color, highlights and with
--set-keyless
variables, when multiple variables with the same name exists in config.conf and in config file that user trying to use when passing--load-config
argument.The same thing for using config files from "/usr/local/share/fastfetch/presets", config.conf file being loaded first, and only then config that was set when passing argument
--load-config
will be loaded, with issues.The same thing for using config files from "/usr/local/share/fastfetch/presets", config.conf file is loaded first, and only then config from fastfetch presets will be loaded that user set when passing argument
--load-config
, with issues.So i think the only solution is just to ignore "$HOME/.config/fastfetch/config.conf" and "$HOME/.config/fastfetch/config.jsonc" and $HOME/.config/fastfetch/config.conf" file when using argument
--load-config
, and load only config that was set when passing--load-config
argument.That's probably will be better than removing config.conf and using
env NO_CONFIG=1
before using fastfetch with passing--load-config
argument, I think.fastfetch --load-config small.conf
causes issues with color highlights (all color highlights are white), because "config.conf" file loads first, and only after "config.conf" being loaded "small.conf"I've also seen this post 377 about this issue, so I hope this will be helpful.
Often helpful information:
Output of
fastfetch --version
:The content of the configuration file you use (if any)
(small.conf)
(config.conf):
Actually it looks the same as small.conf but with some differences with --set-keyless and that instead of arch_small there is default arch logo
Output of
fastfetch --list-features
:sleep 1
before runningfastfetch
work? noPS: Hope this will be helpful!
The text was updated successfully, but these errors were encountered: