Tweak config comment.
[dcpomatic.git] / src / lib / cross_osx.cc
index 7817348e229566a91a06440774beb6bdab8d510a..a16907ebe47360f2658724ce849e5583761ac99f 100644 (file)
@@ -209,9 +209,8 @@ void
 start_tool (string executable, string app)
 {
        boost::filesystem::path exe_path = directory_containing_executable();
-       exe_path = exe_path.parent_path (); // MacOS
        exe_path = exe_path.parent_path (); // Contents
-       exe_path = exe_path.parent_path (); // DCP-o-matic.app
+       exe_path = exe_path.parent_path (); // DCP-o-matic 2.app
        exe_path = exe_path.parent_path (); // Applications
        exe_path /= app;
        exe_path /= "Contents";
@@ -261,12 +260,6 @@ home_directory ()
                return getenv("HOME");
 }
 
-string
-command_and_read (string)
-{
-       return "";
-}
-
 /** @return true if this process is a 32-bit one running on a 64-bit-capable OS */
 bool
 running_32_on_64 ()
@@ -593,3 +586,9 @@ DCPOMATIC_ENABLE_WARNINGS
        TransformProcessType (&serial, kProcessTransformToForegroundApplication);
 }
 
+
+string
+dcpomatic::get_process_id ()
+{
+       return dcp::raw_convert<string>(getpid());
+}