on this siite >How do I edit the /etc/hosts file? i would ask my question but i dont have permission. strange, because now i have to open a new question, why ? thats was not the question.
i try to make a starter on my desktop wich opens a file with sudo, directly. in terminal it works like "sudo leafpad /etc/hosts" with a charme. but if i put the same command in a starter, nothing happens.
the target is with one click to put new hp in it.
why its ok in the terminal but not in the starter ???????? also not possibel to make a shortcut. why?
thanks for answers
for my understanding, why the command works in terminal but not in a shortcut??
– tiger1001 Apr 28 '20 at 20:51gksu
which could be used for a GUI style shortcut and would open a password dialog box. gksu still works but finding it is more difficult and not in the repos anymore. If my solution doesn't work and you want to set up for passwordless sudo let me know – John Orion Apr 28 '20 at 21:17