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