I have created a desktop icon for the gddccontrol, but to run it I need to execute it from sudo. Is there a way to run a command from the desktop icon like,
sudo -pPASSWORD gddccontrol
so it won't ask me for the password in the terminal?
I just want click and run it with sudo permissions.
[Desktop Entry] Type=Application Name=GDDCControl Terminal=false Comment=gddccontrol ddccontrol Exec=sudo -pPASSWORD gddccontrol Icon=~/Pictures/10429.png
When I run the icon from the terminal with the following Exec command it works good, but it doesn't work in Launcher 🙁
Exec=echo mypasswd | sudo -S gddccontrol