Replies: 5 comments
-
Reformatted by AI DescriptionI wanted to have different logos in different themes. In if [ -n “${HYDE_THEME}” ] && [ -d “${confDir}/hyde/themes/${HYDE_THEME}/logo” ]; then
image_dirs+=(“${confDir}/hyde/themes/${HYDE_THEME}/logo/”)
fi I added the logo directory to one of the themes and placed my image there. However, instead of the expected picture, I got the ASCII Arch logo.
Additional Observations
Configuration
Steps to Reproduce
Version Used
Terminal
Error Messages
Attached Files and ImagesFeatures Built-in
|
Beta Was this translation helpful? Give feedback.
-
Hi! I am a maintainer of the dotfiles which is being referenced here. I would like to clear things out to avoid confusion. So, the main gist is, the "source" key in config.jsonc fails when the output path (generated by a script outputs a path with spaces in it.
and also @eigver reports that it works in neofetch. The only one failing is when a script outputs a path with spaces. |
Beta Was this translation helpful? Give feedback.
-
Because the file path contains white space, it must be quoted: To test the source path, in sh: $ ls -l "$(~/script.sh)" # ls -l <text-in-logo-source> |
Beta Was this translation helpful? Give feedback.
-
This doesn't help. Neofetch itself is written in bash, so it works better with bash scripts of course. fastfetch is not neofetch. |
Beta Was this translation helpful? Give feedback.
-
I tried quoting it as an output lol. It made sence now as the quote in jsonc are not included. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Read the FAQ first
Description
I wanted to have different logos in different themes, in fastfetch.sh there are these lines
if [ -n “${HYDE_THEME}” ] && [ -d “${confDir}/hyde/themes/${HYDE_THEME}/logo” ]; then
image_dirs+=(“${confDir}/hyde/themes/${HYDE_THEME}/logo/”)
fi
So I added the logo directory to one of the themes and put my image there. After that instead of the expected picture I got ascii arch logo.
At the same time when writing the path manually in ~/.config/fastfetch/config.jsonc
“source” : ‘$HOME/path/to/your/ultmate/logo/best.png’, the logo is displayed correctly.
Also I know that fastfetch.sh logo outputs the correct path, also when simulated in terminal everything works, thanks for this information khing.
The logo itself is fine and when moved to the ~/.config/fastfetch/logo folder it displays correctly
fastfetch.sh logo --theme
/home/eigver/.config/hyde/themes/Rosé Pine/logo/roxy_icon.png
fastfetch --show-errors
Logo: Image source "$(fastfetch.sh logo --theme)" does not exist
I don't know if it's useful, but let it be.
I did this and still get the same error again
fastfetch --show-errors
Logo: Image source “$(bash /home/eigver/.local/lib/hyde/test.sh)” does not exist, I can assure you that the script itself is written correctly and the path is also correct.
bash /home/eigver/.local/lib/hyde/test.sh
/home/eigver/.config/hyde/themes/Rosé Pine/logo/roxy_icon.png
ls “/home/eigver/.config/hyde/themes/Rosé Pine/logo/roxy_icon.png”.
'/home/eigver/.config/hyde/themes/Rosé Pine/logo/roxy_icon.png'
here's what's inside /home/eigver/.local/lib/hyde/test.sh
echo “/home/eigver/.config/hyde/themes/Rosé Pine/logo/roxy_icon.png”.
and here's what's inside the config ~/.config/fastfetch/config.jsonc
“logo": {
“source“:”$(bash /home/eigver/.local/lib/hyde/test.sh)”,
“height”: 18
},
I moved graphite mono to the theme and it turns out the same thing, I think it's worth trying to create a theme without spaces. (but I think that's not the mistake).
I I forgot to write yesterday
fastfetch —logo command is "$(bash /home/eigver/.local/lib/hyde/test.sh)"
it works correctly, and the logo appears.
HyDE-Project/HyDE#507
Version used
fastfetch 2.40.4 (x86_64)
Bug prevalence
Always
Regression
Not sure
Installation
Package manager
Package manager
pacman
Screenshots
config.jsonc
Configuration
Image protocol
.png
Terminal
zsh on kitty
Image tried
https://bafybeiamvcvk7sr7mscdu73jaqhwghjo7d6x3msgt3qzr7fsojfvqoc37e.ipfs.dweb.link?filename=roxy_icon.png
Error message
fastfetch --show-errors
Logo: Image source "$(fastfetch.sh logo)" does not exist
Features built-in
Beta Was this translation helpful? Give feedback.
All reactions