X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcross_osx.cc;h=d0cb9f216980846307f70c84745e98a38f5a18be;hp=b9b7796a21a73c71e2fb59ac972134fd4ed3439f;hb=a5f481aae19a6ef5b0cad48edaea5b58fc00ee05;hpb=ff6c51d3aae0195f6612b01b7609342d3f53df26 diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc index b9b7796a2..d0cb9f216 100644 --- a/src/lib/cross_osx.cc +++ b/src/lib/cross_osx.cc @@ -638,3 +638,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(WEXITSTATUS(r)); +} +