Skip to content

Conversation

@a-catgirl-dev
Copy link
Contributor

Description

if the backend is fastfetch, hyfetch calls
/bin/fastfetch --logo none -s OS --disable-linewrap which for me returns:
  Artix Linux x86_64
... and that breaks hyfetch -c (the initial setup)

instead, get the information from the source (/etc/os-release), which im pretty sure most fetch backends read from anyway

this won't work on *BSD though, because those lack /etc/os-release, so unless calling uname -s is alright, BSDs would still have the problem

Relevant Links

I am pretty sure this is related: #418

Screenshots

image image

Additional context

This only occurs on certain configurations. this is mine

if the backend is fastfetch, hyfetch calls
`/bin/fastfetch --logo none -s OS --disable-linewrap`
which for me returns:
`  Artix Linux x86_64`
... and that breaks hyfetch

instead, get the information from the source (/etc/os-release), which im
pretty sure most fetch backends read from anyway

this won't work on *BSD though, because those lack
/etc/os-release, so unless calling `uname -s` is alright, BSDs would
still have the problem

related pull: hykilpikonna#418
@hykilpikonna
Copy link
Owner

Thanks for the fix!

AFAIK, not all distros mark their /etc/os-release... and there are a lot (A LOT) of edge cases that I've seen when working with neofetch. Below are just some of them. (e.g. Armbian might just have "debian" in their /etc/os-release, so it needs to be checked by a separate file)

Details image

So I've opened an issue on fastfetch, but I will merge this temporarily until we have a better solution.

(okay I can already see a better solution, which is to use --separator and specify a hidden UTF8 character and split by that 🤔 )

image

@hykilpikonna hykilpikonna merged commit 003c295 into hykilpikonna:master Aug 24, 2025
1 check passed
hykilpikonna added a commit that referenced this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants