neofetch is unable to detect the correct package amount when using multiple package managers.

Created on 26 Apr 2016  Â·  11Comments  Â·  Source: dylanaraps/neofetch

Description

When using multiple package managers, I've noticed that the package count has remained zero, whereas screenfetch correctly reports it as 1038.

System Information

OS: Void Linux x86_64
Kernel: Linux 4.4.6_1 x86_64
Shell: /bin/zsh
WM: bspwm
CPU: AMD Turion Dual-Core RM-75 (2) @ 2.2GHz
GPU: NVIDIA C77 GeForce 8200M G
Memory: 1849MB / 2760MB

Neofetch version

1.6

Operating system

GNU/Linux 4.4.6_1

Screenshot (If relevant)

screenfetch
neofetch

Verbose log

http://sprunge.us/UEYB

Bug

All 11 comments

Thanks for reporting this, I'm installing Void Linux now to fix this.

Do you by any chance have another package manager installed alongside xbps-query?
(pacman, dpkg, rpm and etc)

I only have pip installed beside xbps, I have dpkg installed with xbps.

Does #229 fix your isssue?

It changes the package function to work when the user has multiple package managers installed.

It appears so, #229

Awesome, I'm going to do some testing with various distros and #229 before I merge it.

I also just noticed that the battery output seems to be broken for you, what's the output for these commands?

  • cat /sys/class/power_supply/BAT*/capacity
  • cat /sys/class/power_supply
╭─ 02:58:55  benjamin@benjamin-laptop  ~/bin/neofetch   master  
╰─ cat /sys/class/power_supply/BAT*/capacity                                                                                       ✓ 
cat: /sys/class/power_supply/BAT0/capacity: No such device
╭─ 02:59:06  benjamin@benjamin-laptop  ~/bin/neofetch   master  
╰─ cat /sys/class/power_supply                                                                                                   1 ↵ 
cat: /sys/class/power_supply: Is a directory

As a note before you get to concerned, my battery won't hold a charge anymore and linux sometimes thinks its charging. If you want I can help you investigate this some, but I only have that battery there for when I order a replacement.

The fix is now in master, thanks for reporting this!

Not a problem, thanks for the fix! I changed the title for anyone who might find this issue later on having the same issue.

Thanks. :)

Not a problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Brottweiler picture Brottweiler  Â·  6Comments

rudylorren picture rudylorren  Â·  8Comments

dylanaraps picture dylanaraps  Â·  3Comments

pelomedusa picture pelomedusa  Â·  4Comments

shawniac picture shawniac  Â·  4Comments