print:打印system执行结果。

This commit is contained in:
taynpg 2024-10-31 14:48:48 +08:00
parent 4fe2b55804
commit acb036c1ed

View File

@ -49,7 +49,7 @@ bool CInstallBinary::startInstall(const CmdResult& result)
}
std::string cmd("chmod +x " + temp_shell.string());
std::system(cmd.c_str());
std::cout << cmd << " Ret:" << std::system(cmd.c_str()) << std::endl;
if (!write_file(desktop_tempte, temp_desktop.string())) {
return false;
@ -57,7 +57,7 @@ bool CInstallBinary::startInstall(const CmdResult& result)
cmd.clear();
cmd = "pkexec cp " + temp_desktop.string() + " /usr/share/applications";
std::system(cmd.c_str());
std::cout << cmd << " Ret:" << std::system(cmd.c_str()) << std::endl;
return true;
}