mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Remove unused
This commit is contained in:
parent
3d2ce33a75
commit
86e7e5b3b1
@ -52,15 +52,12 @@ namespace NekoRay::sys {
|
|||||||
|
|
||||||
if (NekoRay::dataStore->flag_linux_run_core_as_admin && dynamic_cast<CoreProcess *>(this)) {
|
if (NekoRay::dataStore->flag_linux_run_core_as_admin && dynamic_cast<CoreProcess *>(this)) {
|
||||||
arguments.prepend(program);
|
arguments.prepend(program);
|
||||||
arguments.prepend(QApplication::applicationDirPath() + "/linux_pkexec.sh");
|
arguments.prepend("--keep-cwd");
|
||||||
program = "bash";
|
program = "pkexec";
|
||||||
}
|
}
|
||||||
|
|
||||||
QProcess::setEnvironment(env);
|
QProcess::setEnvironment(env);
|
||||||
QProcess::start(program, arguments);
|
QProcess::start(program, arguments);
|
||||||
|
|
||||||
// waitForStarted();
|
|
||||||
// pid = processId();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExternalProcess::Kill() {
|
void ExternalProcess::Kill() {
|
||||||
|
|||||||
@ -9,7 +9,6 @@ namespace NekoRay::sys {
|
|||||||
QString program;
|
QString program;
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
QStringList env;
|
QStringList env;
|
||||||
qint64 pid = 0;
|
|
||||||
|
|
||||||
bool managed = true; // MW_dialog_message
|
bool managed = true; // MW_dialog_message
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user