Problems with gnome-terminal
-
I tried to run terminal under linux(ubuntu 13.04) on qt,and then run "bash" command on terminal.Here is my code:
@ QStringList arguments;
arguments<<"bash"<<"/home/fengzhao/geant4.9.6.p01/Top-Metal/run.mac";
QProcess *pro=new QProcess;
pro->start("gnome-terminal",arguments);@It turned out that gnome-terminal has opened but the bash command didn't run.
I tried to add "-x" in before the "bash" ,and this time the terminal just flashed across.
Could you help me find out the error? So many 3x :)