mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-28 13:03:37 +08:00
Add missing os detection
This commit is contained in:
parent
dff7e3e53c
commit
09e9604006
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user