mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
15bb5bfb24
Fix #729
10 lines
355 B
C
10 lines
355 B
C
#include "packages.h"
|
|
|
|
#include "common/settings.h"
|
|
|
|
void ffDetectPackagesImpl(FFPackagesResult* result, FF_MAYBE_UNUSED FFPackagesOptions* options)
|
|
{
|
|
if (!(options->disabled & FF_PACKAGES_FLAG_PKG_BIT))
|
|
result->pkg = (uint32_t) ffSettingsGetSQLite3Int(FASTFETCH_TARGET_DIR_ROOT "/var/db/pkg/local.sqlite", "SELECT count(*) FROM packages");
|
|
}
|