Add missing os detection

This commit is contained in:
Kieran Moy 2024-05-04 00:42:23 +08:00
parent dff7e3e53c
commit 09e9604006

View File

@ -285,8 +285,11 @@ void MainWindow::neko_start(int _id) {
if (NekoGui::dataStore->prepare_exit) return;
auto ents = get_now_selected_list();
#ifdef Q_OS_LINUX
if (IS_NEKO_BOX_INTERNAL_TUN)
auto ret = Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin-ep");
#endif
auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id);
if (ent == nullptr) return;