print:打印system执行结果。
This commit is contained in:
parent
4fe2b55804
commit
acb036c1ed
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user