Can vpn mode service request access from linux policy kit instead of running Hiddify Next as sudo?
Feature description
For using "VPN" service mode, Hiddify Next requires root access to run. On rich desktop environments such as KDE or Gnome, this is not such a big deal, you can specify a program to start as root. But in other desktop environments, either you modify the .desktop app to run as root (which was possible using gksu but gksu has been deprecated on cutting-edge operating systems and similar tools such as pkexec can't connect to Gtk to process the gui) which has a lot of bugs on up-to-date systems, or you run it directly using terminal with sudo, which is not as efficient and will run the entire program as root instead of a single service. Plus, you have to open a terminal each time which gets pretty annoying.
Currently there is a "VPN Service" service mode which can be ran on a non-root user and utilizes system policy kit. I believe this feature is under development because It's not working properly on my machine. Please also make the regular "VPN" service to also request access from policy kit similar to what Nekoray does.
my os: Arch linux with i3 window manager Tested both on Hiddify Next AppImage and installation from "aur" repositories. both methods were on the latest version (1.1.1 dev) and showed similar results.
Recommend that the author package it into operating system packages, such as deb or rpm packages. This way, it can be installed with a single command using apt or yum, eliminating permission issues and automatically installing dependent packages.