Specify full path to dcpomatic2_dist_writer and tidy a few things up.
[dcpomatic.git] / src / lib / cross_osx.cc
index 2f6066285ae0381582e4809635ac5a76b922265a..52d3d647b1b568070955eadcc9a780de64424fcc 100644 (file)
@@ -136,6 +136,15 @@ openssl_path ()
        return path;
 }
 
+boost::filesystem::path
+dist_writer_path ()
+{
+       boost::filesystem::path path = app_contents();
+       path /= "MacOS";
+       path /= "dcpomatic2_dist_writer";
+       return path;
+}
+
 /* Apparently there is no way to create an ofstream using a UTF-8
    filename under Windows.  We are hence reduced to using fopen
    with this wrapper.