summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_disk.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-02 21:37:14 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-02 21:37:14 +0200
commit3a715c7e0d5cbb39ffd6816899ef3050e8331882 (patch)
tree0c3b7c11dae457d49126d4e713d1b4ba6ee4e301 /src/tools/dcpomatic_disk.cc
parent88ad1ed243572b5310a4e866e87a61e8d8c8969e (diff)
Try to start _writer on-demand on macOS (#1739).
Diffstat (limited to 'src/tools/dcpomatic_disk.cc')
-rw-r--r--src/tools/dcpomatic_disk.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc
index 6f72bfed0..b2678ce42 100644
--- a/src/tools/dcpomatic_disk.cc
+++ b/src/tools/dcpomatic_disk.cc
@@ -42,6 +42,7 @@
#endif
#ifdef DCPOMATIC_OSX
#include <ApplicationServices/ApplicationServices.h>
+#include <notify.h>
#endif
using std::string;
@@ -132,7 +133,10 @@ public:
_writer = new boost::process::child (disk_writer_path());
#endif
- /* _writer is always running on macOS at the moment */
+#ifdef DCPOMATIC_OSX
+ LOG_DISK_NC("Sending notification to writer daemon");
+ notify_post ("com.dcpomatic.disk.writer.start");
+#endif
}
~DOMFrame ()