fix: Fix linux minor issue

This commit is contained in:
unknown 2024-08-09 02:24:12 +03:30
parent ece93bd916
commit 1bdc97b594
No known key found for this signature in database
GPG Key ID: C2CA486E4F771093

View File

@ -725,7 +725,7 @@ bool MainWindow::get_elevated_permissions() {
#ifdef Q_OS_LINUX
if (!Linux_HavePkexec()) {
MessageBoxWarning(software_name, "Please install \"pkexec\" first.");
neko_set_spmode_FAILED
return false;
}
auto ret = Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin=ep");
if (ret == 0) {