Fix snap package count

This commit is contained in:
Linus Dierheimer committed 2021-06-10 22:04:25 +02:00
1 parent 580ad45459
commit 4d565cb7ee
2 files changed
+5 -1

No files matched your search

+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)