[solved] QProcess with gnome-terminal
-
Hello Comunity,
this is my first post here. I have some problems with the gnome-terminal while using the qprocess.
@ QString program = "gnome-terminal";
QStringList arguments;
arguments << "bash --rcfile /opt/.bashrc-OpenFOAM";QProcess *proc = new QProcess(this); proc->start(program, arguments);@
The terminal starts but the rcfile does not load. Is there something I am doing wrong?
Thanks for the help.
Martin -
Try:
@arguments << "-x" << "bash" << "--rcfile" << "/opt/.bashrc-OpenFOAM";@Note: I would try on a command line first to ensure the gnome-terminal syntax is correct and works appropriately.