ASwyD2
1
I am trying to create shortcuts for sudo commands and wondering what is needed to tell it the password?
[Desktop Entry]
Type=Application
Name=Waydroid Start
Exec=sudo systemctl start waydroid-container
Icon=/usr/lib/waydroid/data/AppIcon.png
X-Purism-FormFactor=Workstation;Mobile;
NoDisplay=false
dcz
2
You can run systemctl without sudo, at least on my Fedora.
Otherwise, use gksu.
ASwyD2
4
I am new to linux so what is gksu?
dcz
7
You could also try pkexec. I think that’s installed by default.
ASwyD2
10
No cause it won’t do anything from the shortcut.