the script should open a terminal window and run latexmk inside, along with gedit. Im doing this to save my self opening up all these windows anew each time, gnome-terminal -e "latexmk -g -pdf f.tex" isnt working on my machine.