diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-03-27 21:05:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-28 19:47:28 +0100 |
| commit | 9a3ded9ad4131975aa37b069f152e5c276a46da5 (patch) | |
| tree | b4c2bd21915dc6a905e2966b6121839afbf1daa3 /src | |
| parent | 1dc604db52a6ccad29e97e68bbc06d56ff3f417c (diff) | |
Try boost::process::windows::hide on Windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_dist.cc | 11 |
1 files changed, 9 insertions, 2 deletions
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 <nanomsg/pair.h> #include <wx/wx.h> #include <boost/process.hpp> -#ifdef __WXOSX__ +#ifdef DCPOMATIC_WINDOWS +#include <boost/process/windows.hpp> +#endif +#ifdef DCPOMATIC_OSX #include <ApplicationServices/ApplicationServices.h> #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: |
