hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.27k stars 96 forks source link

doesn't show terminal font section #116

Closed ask-compu closed 1 year ago

ask-compu commented 1 year ago

Description

hyfetch does not show the terminal font section but neowofetch does

Neofetch version

hyfetch 1.4.8 neowofetch 7.3.8

Screenshot

image

Config file

neofetch config hyfetch config

hykilpikonna commented 1 year ago

This is because, in the detection function, it uses get_ppid "$$" to obtain the process id of the parent, which, in this case, is HyFetch instead of zsh.

The same issue will occur if neofetch is ran in a zsh subprocess that's one level below from the konsole process:

image

So I implemented an easy fix to recursively check for parent processes until the parent is "konsole."

image

image