-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] How to Run Tauri's Application in Root Mode #6807
Comments
Not sure what you want to be honest, could you explain more please? Do you want to forbid using your app unless it is opened using |
For example:pkexec my application。My application requires root access to system resources. Want to start and access through a desktop shortcut. Applied to deb packaging method |
The current solution is to modify desktop shortcuts, but this is not the final solution。 |
For more info see https://wiki.archlinux.org/title/Running_GUI_applications_as_root |
Thanks... |
|
This is my solution
with tauri.config.json "deb": {
"depends": [],
"desktopTemplate": "./templates/main.desktop"
} It works on Ubuntu 20.04 |
Describe the problem
Excuse me, if you use the deb package compiled by tauri to run in ubuntu, it can be opened like GParted after installation, and you will be prompted to run with root privileges. Then, enter the password and run the program. Open in non command-line mode.
Describe the solution you'd like
Requires sudo to run
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: