MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / IsProgramInstalled

Method IsProgramInstalled

desktop/src/installer/ServiceInstaller.Linux.cpp:180–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180bool ServiceInstaller::IsProgramInstalled(const std::string &pathName) {
181 return Shell::RunUserCommand(fmt::format("which {}", pathName)).exitCode == 0 ||
182 Shell::RunUserCommand(fmt::format("systemctl cat {}", pathName)).exitCode == 0;
183}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected