Y
Y
yarrybka2019-09-08 17:06:35
linux
yarrybka, 2019-09-08 17:06:35

Can't create shortcut with bash in terminal?

I have two bash scripts:
one starts all traffic through the tor
the second one cancels the redirection of all traffic
I want to make icons instead of typing ctl+alt+t sudo ./tor-on.shor sudo ./tor-off.sh
And the problem is that it doesn't work.

Exec=sh /home/(ПОЛЬЗОВАТЕЛЬ)/TOR-SH/tor-off.sh
Exec=gksu "gnome-terminal -x bash -c /home/(ПОЛЬЗОВАТЕЛЬ)/TOR-SH/tor-off.sh"
Exec=gnome-terminal -e /home/(ПОЛЬЗОВАТЕЛЬ)/TOR-SH/tor-off.sh

played with Terminal=trueorfalse

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentine, 2019-09-12
@ProFfeSsoRr

What does "make icons" mean? Well, put these scripts on your desktop, and run by icon. sudo can be written inside there in commands so as not to run the script itself from sudo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question