Fix snap package count

This commit is contained in:
Linus Dierheimer
2021-06-10 22:04:25 +02:00
parent 580ad45459
commit 4d565cb7ee
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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.
+4
View File
@@ -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)