mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
fix
This commit is contained in:
@@ -50,7 +50,7 @@ namespace NekoRay::sys {
|
||||
|
||||
QProcess::setEnvironment(env);
|
||||
|
||||
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) && program != "pkexec") {
|
||||
arguments.prepend(program);
|
||||
arguments.prepend("--keep-cwd");
|
||||
program = "pkexec";
|
||||
|
||||
Reference in New Issue
Block a user