Using gtk thread to run a shell command