This tip will let you know how to start a program both console and GUI from a bash script.
Before starting mark your bash script or other dependent script as executable.
The following script will start itself in a console window then ask for root password to start another program named wvdial (Internet Dialer Tool).
if [ "$1" = "Start" ]; then
konsole -e bash -i "$0" Start #Konsole or Terminal whichever applicable
Start in console
The following script will start another script in a console window.
konsole -e bash -i "path_to_the_Script"
Starting another GUI program
The following script starts a Python GUI code named Start.py residing in the same directory.
cd "$(echo $0| sed 's/\/[^\/ ]*.sh/\//g')"