From: Carl Hetherington Date: Fri, 27 Mar 2020 20:05:27 +0000 (+0100) Subject: Try boost::process::windows::hide on Windows. X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=9a3ded9ad4131975aa37b069f152e5c276a46da5;p=dcpomatic.git Try boost::process::windows::hide on Windows. --- diff --git a/src/tools/dcpomatic_dist.cc b/src/tools/dcpomatic_dist.cc index e7e19bd0d..110d71ff1 100644 --- a/src/tools/dcpomatic_dist.cc +++ b/src/tools/dcpomatic_dist.cc @@ -34,7 +34,10 @@ #include #include #include -#ifdef __WXOSX__ +#ifdef DCPOMATIC_WINDOWS +#include +#endif +#ifdef DCPOMATIC_OSX #include #endif @@ -113,7 +116,11 @@ public: Bind (wxEVT_SIZE, boost::bind (&DOMFrame::sized, this, _1)); - _writer = new boost::process::child (dist_writer_path(), boost::process::shell); +#ifdef DCPOMATIC_WINDOWS + _writer = new boost::process::child (dist_writer_path(), boost::process::shell, boost::process::windows::hide); +#else + _writer = new boost::process::child (dist_writer_path()); +#endif } private: