#include #include #include #include #include "subprocess.hpp" #include "launch.hpp" #include "internal/launch.hpp" #include "output.hpp" using namespace std; using namespace cellar; void cellar::launch::launch_program(vector args) { vector wineargs = args; wineargs[0] = "wine"; string winelaunch = boost::algorithm::join(wineargs, " "); launch::popen(winelaunch); } void cellar::launch::launch_command(int argc, vector args) { if (argc == 1) { output::error("forgot to specify a command"); return; } launch::launch_program(args); } // BULLSHIT: subprocess.hpp throws linker errors if included in multiple files void cellar::launch::popen(string argv) { auto wine = subprocess::Popen(argv); wine.wait(); }