Try boost::process::windows::hide on Windows.
authorCarl Hetherington <cth@carlh.net>
Fri, 27 Mar 2020 20:05:27 +0000 (21:05 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Mar 2020 18:47:28 +0000 (19:47 +0100)
src/tools/dcpomatic_dist.cc

index e7e19bd0d4ec500fdd4e89e8a85b051cfd8ff783..110d71ff1b5ea1ad19b80e4176c2c0db935a8ff7 100644 (file)
 #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: