alba4k / albafetch

Faster neofetch alternative, written in C. Still improving :)
MIT License
66 stars 10 forks source link

[Bug Report] Stuck in the middle #131

Open Dominiquini opened 20 hours ago

Dominiquini commented 20 hours ago

Describe the bug The application gets stuck in the middle of the output

Expected behavior The app should print and exit

Screenshots albafetch

Desktop (please complete the following information):

Possibly relevant config lines:

Additional context Installed from AUR - albafetch-bin (https://aur.archlinux.org/packages/albafetch-bin)

alba4k commented 18 hours ago

Huh

for some reason it gets stuck trying to count the installed packages

would you mind trying to disable pkg_snap pkg_flatpak and pkg_pacman one by one and see which one is causing the issue?

You can check /etc/xdg/albafetch.conf for a reference syntax, not sure if the changes will actually be read if you change any settings from that file, pretty sure that's only on -git (actually, I'm not even sure if I implemented that in git or you still have to copy it to your home dir. Should probably check)

Dominiquini commented 3 hours ago

I haven't tested the changes you proposed (I can test them later), but I saw here that the application isn't freezing, it just takes a long time to run (more than 2 minutes!) Maybe this option should be disabled by default!

Thanks.

alba4k commented 3 hours ago

It should totally not take that long, especially if it's just pacman. Could you please tell me what you get as installed packages? pip takes a long time to run, which is why I have disabled it by default

debug build, with pip ![immagine](https://github.com/user-attachments/assets/e9e52e56-275a-4bde-a9d1-5884472e995f)
debug build, without pip ![immagine](https://github.com/user-attachments/assets/ce6f955e-7edd-4b21-b202-fcdd76cd3bee)

What is taking two minutes though? it can't be pacman, maybe flatpak or snap?