Make a Launcher for a Privileged Terminal Command

I intend to make a Launcher that will certainly do blessed (calls for origin) regulates, yet I do not intend to see the terminal or need to type my password right into the terminal. So I located the command, gksudo that permits me to enter my password to make sure that I can rise my advantage degree. Currently I intend to pair this, to make sure that I can transform the dividing top priority utilizing this command cgpt add -i 6 -P 0 -S 0 /dev/sda (this command is blessed) and also have it instantly reboot from this set launcher.

I arrangement a Luncher similar to this:

Name : ChromeOS

Description :

Command : gksudo gnome-terminal -e "cgpt add -i 6 -P 0 -S 0 /dev/sda;reboot"

Comment :

But it does not function. Any kind of pointers?

2022-06-07 14:39:17
Source Share
Answers: 1

You do not require a gnome - terminal while running commands with gksudo.

simply add this to the launcher.

gksudo cgpt add -i 6 -P 0 -S 0 /dev/sda;reboot
2022-06-07 15:05:49