I've created a .desktop launcher as shown below which successfully opens terminal. What I want to do next is to run the following commands such as cd home/userA/scripts
then PACKAGE_PATH=/home/userA/package1
then source setdefaults.sh
through this .desktop launcher through the terminal after opening it.
My run.desktop:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_AU]=/usr/pics/pic1.png
Name[en_AU]=RUN
Exec=gksu -u userA /usr/bin/gnome-terminal
Comment[en_AU]=comment
Name=RUN
Comment=comment
Icon=/usr/pics/pic1.png
So what I want to do is to automatically run a sequence of commands and scripts (through terminal) after executing the first command which opens the terminal. If anyone could please advise.