Merge branch 'better-gl' into v2.15.x
[dcpomatic.git] / src / lib / cross_osx.cc
index b9b7796a21a73c71e2fb59ac972134fd4ed3439f..ff40ffb708aa8666a2e279b8362ce34663abd8c1 100644 (file)
@@ -552,7 +552,7 @@ Drive::get ()
 
 
 boost::filesystem::path
-config_path ()
+config_path (optional<string> version)
 {
        boost::filesystem::path p;
        p /= g_get_home_dir ();
@@ -560,6 +560,9 @@ config_path ()
        p /= "Preferences";
        p /= "com.dcpomatic";
        p /= "2";
+       if (version) {
+               p /= *version;
+       }
        return p;
 }
 
@@ -638,3 +641,12 @@ fix_long_path (boost::filesystem::path path)
 {
        return path;
 }
+
+
+bool
+show_in_file_manager (boost::filesystem::path, boost::filesystem::path select)
+{
+       int r = system (String::compose("open -R \"%1\"", select.string()).c_str());
+       return static_cast<bool>(WEXITSTATUS(r));
+}
+