I've tested the same script you have and it works fine here. made a shortcut with the command "gnome-terminal -x /usr/local/bin/script" and it launched the gnome-terminal and execute the script, the same if i running it from the command line.
I've tested the same script you have and it works fine here. made a shortcut with the command "gnome-terminal -x /usr/local/ bin/script" and it launched the gnome-terminal and execute the script, the same if i running it from the command line.