mirror of https://github.com/linuxdeepin/linglong
parent
fe9e7ec754
commit
319f2db592
|
|
@ -58,6 +58,10 @@ int main(int argc, char **argv)
|
|||
logger->set_level(spdlog::level::trace);
|
||||
}
|
||||
auto path = QStandardPaths::findExecutable("crun");
|
||||
if (path.isEmpty()) {
|
||||
qCritical() << "crun not found";
|
||||
return -1;
|
||||
}
|
||||
auto crun = ocppi::cli::crun::Crun::New(path.toStdString(), logger);
|
||||
if (!crun.has_value()) {
|
||||
std::rethrow_exception(crun.error());
|
||||
|
|
|
|||
|
|
@ -197,6 +197,11 @@ int main(int argc, char **argv)
|
|||
logger->set_level(spdlog::level::trace);
|
||||
}
|
||||
auto path = QStandardPaths::findExecutable("crun");
|
||||
if (path.isEmpty()) {
|
||||
qCritical() << "crun not found";
|
||||
QCoreApplication::exit(-1);
|
||||
return;
|
||||
}
|
||||
auto crun = ocppi::cli::crun::Crun::New(path.toStdString(), logger);
|
||||
if (!crun.has_value()) {
|
||||
std::rethrow_exception(crun.error());
|
||||
|
|
|
|||
|
|
@ -61,6 +61,10 @@ auto main(int argc, char *argv[]) -> int
|
|||
logger->set_level(spdlog::level::trace);
|
||||
}
|
||||
auto path = QStandardPaths::findExecutable("crun");
|
||||
if (path.isEmpty()) {
|
||||
qCritical() << "crun not found";
|
||||
return -1;
|
||||
}
|
||||
auto crun = ocppi::cli::crun::Crun::New(path.toStdString(), logger);
|
||||
if (!crun.has_value()) {
|
||||
std::rethrow_exception(crun.error());
|
||||
|
|
|
|||
Loading…
Reference in New Issue