From acb036c1ede958954437b8c7f74adf5a7c9d4a14 Mon Sep 17 00:00:00 2001 From: taynpg Date: Thu, 31 Oct 2024 14:48:48 +0800 Subject: [PATCH] =?UTF-8?q?print=EF=BC=9A=E6=89=93=E5=8D=B0system=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=BB=93=E6=9E=9C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.cpp b/install.cpp index 43eda92..fe6f913 100644 --- a/install.cpp +++ b/install.cpp @@ -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; } \ No newline at end of file