mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-31 06:59:04 +08:00
fix: Fix linux minor issue
This commit is contained in:
parent
ece93bd916
commit
1bdc97b594
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user