}
int openFileExplorer(const std::string& file)
- {
- std::string command = FILE_EXPLORER;
+ {
+ std::string command = FILE_EXPLORER;
+
+ if(file != "")
+ command += " \"" + file + "\" &";
+
+ return system(command.c_str());
+ }
- if(file != "")
- command += " \"" + file + "\" &";
+ int openFileWithCommand(const std::string& file, const std::string& command)
+ {
+ std::string comm = command;
+ if(file != "")
+ comm += " \"" + file + "\" &";
- return system(command.c_str());
- }
+ return system(comm.c_str());
+ }
+
+ int openBBEditor()
+ {
+ std::string comm = "bbEditor &";
+ return system(comm.c_str());
+ }
+
+ int openCreaToolsTools()
+ {
+ std::string comm = "creaTools.sh &";
+ return system(comm.c_str());
+ }
+
+ int openTerminal()
+ {
+ std::string comm = TERMINAL + "&";
+ return system(comm.c_str());
+ }
}