Add config location versioning (#2090).
[dcpomatic.git] / src / tools / dcpomatic_disk.cc
index 7e43c068469ae74149671ca1124971e9d7f46727..ec5d8e782db122dc4a15814432aa3ddae5bb2f2c 100644 (file)
@@ -139,7 +139,7 @@ public:
                /* XXX: this is a hack, but I expect we'll need logs and I'm not sure if there's
                 * a better place to put them.
                 */
-               dcpomatic_log.reset(new FileLog(config_path() / "disk.log"));
+               dcpomatic_log = make_shared<FileLog>(State::write_path("disk.log"));
                dcpomatic_log->set_types (dcpomatic_log->types() | LogEntry::TYPE_DISK);
                LOG_DISK("dcpomatic_disk %1 started", dcpomatic_git_commit);