mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2026-10-23 21:35:02 +00:00
some fixes including adding double quotes
This commit is contained in:
1 parent
b65f761520
commit
3b1701f8b5
15 files changed
+207
-29
No files matched your search
Vendored
+2
@@ -29,12 +29,14 @@ TaskResult runTask(const QString cmd, const bool useSuid)
|
||||
command.waitForFinished(-1);
|
||||
r.exitCode = command.exitCode();
|
||||
r.output = command.readAllStandardOutput();
|
||||
r.error = command.readAllStandardError();
|
||||
} else {
|
||||
QProcess command;
|
||||
command.start(cmd);
|
||||
command.waitForFinished(-1);
|
||||
r.exitCode = command.exitCode();
|
||||
r.output = command.readAllStandardOutput();
|
||||
r.error = command.readAllStandardError();
|
||||
}
|
||||
|
||||
return r;
|
||||
|
||||
Vendored
+1
@@ -38,6 +38,7 @@ protected:
|
||||
struct TaskResult
|
||||
{
|
||||
int exitCode;
|
||||
QByteArray error;
|
||||
QByteArray output;
|
||||
};
|
||||
TaskResult runTask(const QString cmd, const bool useSuid = true);
|
||||
|
||||
Reference in new issue
Block a user