I'm using Fastfetch in my Hyprland Endeavor setup, and I've added a Fastfetch script in my .zshrc. While it works fine otherwise, the issue is that it's not rendering the image specified in my JSONC configuration file during startup—it defaults to ASCII art. Interestingly, it works perfectly when I run Fastfetch manually. Any ideas on how to fix this?
2 Answers
I had a similar problem. After ensuring the full path was correct, I added a check for the terminal type in my .zshrc:
`if [[ $TERM == xterm-kitty ]]; then
fastfetch --config $HOME/.config/fastfetch/config.jsonc
fi`
This way, it only runs Fastfetch if the Kitty terminal is active. You might want to try something like that!
The issue you're facing is likely due to your .zshrc executing Fastfetch without the correct working directory or environment settings of your interactive terminal. When you run it manually, it has access to your JSON config, but during startup, it defaults to ASCII because it can't find it.
To solve this, you should specify the full path to your JSON config in your .zshrc. For example:
`fastfetch --config /home/youruser/.config/fastfetch/config.jsonc`
Also, make sure that Kitty terminal is actually running when your .zshrc gets executed, as some startup shells might not set the right $TERM yet.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures