return system(comm.c_str());
}
- int openTerminal()
+ int openTerminal(const std::string& command)
{
- std::string comm = TERMINAL + "&";
+ std::string comm = TERMINAL;
+ if (command != "")
+ comm += + " " + command;
+ comm += " &";
return system(comm.c_str());
}