hyprpm: Fix checking dependencies (#7504)

* hyprpm: Fix checking dependencies

* hyprpm: Check for dependency "pkg-config"

---------

Co-authored-by: Nelo-T. Wallus <nelo@wallus.de>
This commit is contained in:
Nelo-T. Wallus 2024-08-25 13:13:48 +02:00 committed by GitHub
parent 66586c38f5
commit aac90d9279
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -904,9 +904,9 @@ std::string CPluginManager::headerErrorShort(const eHeadersErrors err) {
} }
bool CPluginManager::hasDeps() { bool CPluginManager::hasDeps() {
std::vector<std::string> deps = {"meson", "cpio", "cmake"}; std::vector<std::string> deps = {"meson", "cpio", "cmake", "pkg-config"};
for (auto& d : deps) { for (auto& d : deps) {
if (!execAndGet("which " + d + " 2>&1").contains("/")) if (!execAndGet("command -v " + d).contains("/"))
return false; return false;
} }