TanmayPatil105 / procfetch

🎨 Yet another command-line system information utility written in C++
https://tanmaypatil105.github.io/procfetch/
GNU General Public License v3.0
22 stars 11 forks source link

Ascii art not printing while using brew #124

Closed TanmayPatil105 closed 1 year ago

TanmayPatil105 commented 1 year ago

Output

❯ procfetch

tanmay@tanmay-lenovo

OS : Ubuntu 20.04.5 LTS x86_64
Host : 81DE Lenovo ideapad 330-15IKB
Kernel : 5.15.0-60-generic
UpTime : 22 hours, 41 mins
RAM : 2615MiB / 7857MiB
shell : zsh
DE : ubuntu:GNOME
Resolution : 1366x768
Theme : Yaru
Icons : Yaru
CPU : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
CPU Temperature : 40 °C
GPU : Intel Corporation UHD Graphics 620
GPU : NVIDIA Corporation GP108M [GeForce MX150]
Packages : 2155 dpkg; 169 brew; 15 snap; 6 flatpak; 3 npm; 

🔋 36% [==================>-------------------------------]
TanmayPatil105 commented 1 year ago

Files are properly installed!

❯ pwd ;ls  
/home/linuxbrew/.linuxbrew/share/procfetch/ascii
 arch.ascii        bodhilinux.ascii   elementaryos.ascii   gentoo.ascii    linuxlite.ascii   Makefile.in       opensuse.ascii       redhat.ascii      ubuntu.ascii
 archcraft.ascii   centos.ascii       endeavouros.ascii    kali.ascii      linuxmint.ascii   manjaro.ascii     parrot.ascii         rocky.ascii       xubuntu.ascii
 asahi.ascii       debian.ascii       fedora.ascii         kubuntu.ascii   lubuntu.ascii     mxlinux.ascii     peppermintos.ascii   slackware.ascii   zorin.ascii
 blackarch.ascii   deepin.ascii       garudalinux.ascii    linux.ascii     Makefile          navylinux.ascii  'pop!_os.ascii'       steamos.ascii

Probably issue with the code @youpong

TanmayPatil105 commented 1 year ago

Tried using strace! It is not able to read hidden files ig

strace output

openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/procfetch/ascii/ubuntu.ascii", O_RDONLY) = -1 ENOENT (No such file or directory)