Skip to content

Commit

Permalink
hyprpm: Fix checking dependencies (#7504)
Browse files Browse the repository at this point in the history
* hyprpm: Fix checking dependencies

* hyprpm: Check for dependency "pkg-config"

---------

Co-authored-by: Nelo-T. Wallus <[email protected]>
  • Loading branch information
ntnn and ntnn authored Aug 25, 2024
1 parent 66586c3 commit aac90d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyprpm/src/core/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,9 @@ std::string CPluginManager::headerErrorShort(const eHeadersErrors err) {
}

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) {
if (!execAndGet("which " + d + " 2>&1").contains("/"))
if (!execAndGet("command -v " + d).contains("/"))
return false;
}

Expand Down

0 comments on commit aac90d9

Please sign in to comment.