From aac90d92797825a65b9faab038586a3b88448667 Mon Sep 17 00:00:00 2001 From: "Nelo-T. Wallus" Date: Sun, 25 Aug 2024 13:13:48 +0200 Subject: [PATCH] hyprpm: Fix checking dependencies (#7504) * hyprpm: Fix checking dependencies * hyprpm: Check for dependency "pkg-config" --------- Co-authored-by: Nelo-T. Wallus --- hyprpm/src/core/PluginManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index 6988547ca9d..ab457ca600c 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -904,9 +904,9 @@ std::string CPluginManager::headerErrorShort(const eHeadersErrors err) { } bool CPluginManager::hasDeps() { - std::vector deps = {"meson", "cpio", "cmake"}; + std::vector deps = {"meson", "cpio", "cmake", "pkg-config"}; for (auto& d : deps) { - if (!execAndGet("which " + d + " 2>&1").contains("/")) + if (!execAndGet("command -v " + d).contains("/")) return false; }