Give 'wrong target' KDM errors in a dialogue box rather than in the job manager ...
[dcpomatic.git] / src / lib / cross_linux.cc
index d8a33482f6b40d1cbbeb178973c94ddad617a1e5..a60f7af6336728f1040523bca306bc4d0454931d 100644 (file)
@@ -32,6 +32,7 @@ extern "C" {
 }
 #include <boost/algorithm/string.hpp>
 #include <boost/foreach.hpp>
+#include <boost/function.hpp>
 #ifdef DCPOMATIC_DISK
 #include <boost/dll/runtime_symbol_info.hpp>
 #endif
@@ -58,6 +59,7 @@ using std::cout;
 using std::runtime_error;
 using boost::shared_ptr;
 using boost::optional;
+using boost::function;
 
 /** @param s Number of seconds to sleep for */
 void
@@ -272,6 +274,7 @@ get_mounts (string prefix)
                vector<string> bits;
                boost::algorithm::split (bits, line, boost::is_any_of(" "));
                if (bits.size() > 1 && boost::algorithm::starts_with(bits[0], prefix)) {
+                       boost::algorithm::replace_all (bits[1], "\\040", " ");
                        mounts.push_back(make_pair(bits[0], bits[1]));
                        LOG_DISK("Found mounted device %1 from prefix %2", bits[0], prefix);
                }
@@ -329,7 +332,7 @@ Drive::get ()
 
 
 bool
-Drive::unmount () 
+Drive::unmount ()
 {
        BOOST_FOREACH (boost::filesystem::path i, _mount_points) {
                int const r = umount(i.string().c_str());
@@ -372,3 +375,10 @@ config_path ()
        return p;
 }
 
+
+void
+disk_write_finished ()
+{
+
+}
+