I have a dumb question and I hope you can help me .. I have "script1.sh" and "script2.sh", both have permissions 755 and are in the same folder
script1.sh:
#!/bin/bash
zenity --info --text="SCRIPT1.sh"
./script2.sh
exit 0
script2.sh:
#!/bin/bash
zenity --info --text="TEST SCRIPT2.SH "
exit 0
Make a cd to the folder containing the scripts, then (from the bash console) write:
./script1.sh
It runs all OK! ..the show 2 posts zenity
----------------------------------------
But the problem is here ...
If I create a shortcut 'gnome' (All Settings> Shortcuts> Keyboard) and income as /path/to/script1.sh command .. only the first message zenity is shown (script1.sh)
It means that fails to run 'script2.sh' from 'script1.sh' when pressure key combination... why? How could solve this problem?
Thanks you!