Mahdi-zarei / nekoray

Qt based cross-platform GUI proxy configuration manager (backend: sing-box)
GNU General Public License v3.0
485 stars 32 forks source link

FEATURE: Add privileges elevation on macOS on launch #134

Open Werameli opened 2 months ago

Werameli commented 2 months ago

Description suggestions

Request administrative privileges on launch on macOS for using tun mode without launching nekoray with sudo all the time

Necessity of recommendations (Not really a recomendation)

I can test builds as I was doing with signing problem builds

Mahdi-zarei commented 2 months ago

I have already tried to find a proper way, but mac OS is really strict on this. I have a guess that maybe trying to use sudo inside the code may help, but it's still a shot in the dark. Let's try and find out

Werameli commented 2 months ago

I have already tried to find a proper way, but mac OS is really strict on this. I have a guess that maybe trying to use sudo inside the code may help, but it's still a shot in the dark. Let's try and find out

Well, let's try it, I can test these builds

Mahdi-zarei commented 1 month ago

Hello, I tried something here: https://github.com/Mahdi-zarei/nekoray/actions/runs/10917403232 The expected behavior is for the OS to ask for permission once nekoray has started, can you check if this helps?

Werameli commented 1 month ago

Hello, I tried something here: https://github.com/Mahdi-zarei/nekoray/actions/runs/10917403232 The expected behavior is for the OS to ask for permission once nekoray has started, can you check if this helps?

Hey, sorry for long answer. I'm really busy this days like I can't even test smth, if someone else could test this build I'd appreciate it

Mahdi-zarei commented 4 weeks ago

I have some ideas on how this can be fixed, please inform me whenever you had the time to test the builds.