Fix Linux stopVpn

This commit is contained in:
Nova 2024-11-27 18:09:08 +03:30
parent 0444a14f5f
commit 0b9d13c5dd
No known key found for this signature in database
GPG Key ID: 389787EC83F5D73A

View File

@ -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