Hi all,
I'm using tauri v2. I know it is not in a stable release. My project is new and I decided to use it and not to migrate in future.
My issue is that my app need to have the root priviledges to do some file system operations. In detail I need to read/write some files to some directory like /user/share/<etc>.
At the moment the only way I found to solve this problem was to run a command through pkexec.
The problem is that I would like to avoid using this approach otherwise I have to ask via GUI for the administrator pw for each command to execute. This can be very frustrating for a user since I could potentially have to run a hundred commands.
I have already considered as a possible improvement to gather all the commands into an sh file and run it with privileges, but this requires a huge effort at the development level since one has to build at runtime an sh script that can be very complex.
Hence the question: is there a way to configure the entire tauri application to run with administrator privileges? Or is there a way to have the necessary permissions to write to certain protected directories?
If you want to take a look and you have other suggestion fot this I leave here my project link: https://github.com/francesco-gaglione/AppHub
Thank you