mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:14:37 +02:00
Fix snap package count
This commit is contained in:
@@ -32,7 +32,7 @@ All categories not listed here should work without needing a specific implementa
|
||||
|
||||
##### Logos:
|
||||
```
|
||||
Arch, Artix, Manjaro, Garuda, Debian, Ubuntu, Void
|
||||
Arch, Artix, Manjaro, Fedora, Garuda, Debian, Ubuntu, Void
|
||||
```
|
||||
> **_NOTE:_** Unknown/unsupported logos will be replaced with a question mark when running fastfetch.
|
||||
|
||||
|
||||
@@ -62,6 +62,10 @@ void ffPrintPackages(FFinstance* instance)
|
||||
uint32_t flatpak = getNumElements("/var/lib/flatpak/app", DT_DIR);
|
||||
uint32_t snap = getNumElements("/snap", DT_DIR);
|
||||
|
||||
//Accounting for the /snap/bin folder
|
||||
if(snap > 0)
|
||||
--snap;
|
||||
|
||||
uint32_t all = pacman + dpkg + rpm + xbps + flatpak + snap;
|
||||
|
||||
if(all == 0)
|
||||
|
||||
Reference in New Issue
Block a user