mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-28 21:31:22 +08:00
Fix Linux stopVpn
This commit is contained in:
parent
0444a14f5f
commit
0b9d13c5dd
@ -1826,7 +1826,7 @@ bool MainWindow::StopVPNProcess() {
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
QProcess p;
|
||||
p.start("pkexec", {"pkill", "-2", "-P", Int2String(vpn_pid)});
|
||||
p.start("pkexec", {"kill", "-9", Int2String(vpn_pid)});
|
||||
p.waitForFinished();
|
||||
ok = p.exitCode() == 0;
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user