mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-05 20:54:21 +01:00
e0eba8ce21
```bash find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i ```
13 lines
509 B
C
13 lines
509 B
C
#include "packages.h"
|
|
|
|
#include "common/io.h"
|
|
|
|
void ffDetectPackagesImpl(FFPackagesResult* result, FFPackagesOptions* options) {
|
|
// TODO: Use the Package Kit C++ API instead (would account for disabled packages)
|
|
|
|
if (!(options->disabled & FF_PACKAGES_FLAG_HPKG_BIT)) {
|
|
result->hpkgSystem = ffPackagesGetNumElements(FASTFETCH_TARGET_DIR_ROOT "/system/packages", false);
|
|
result->hpkgUser = ffPackagesGetNumElements(FASTFETCH_TARGET_DIR_ROOT "/boot/home/config/packages", false);
|
|
}
|
|
}
|