13
0

Fix template export on MacOS

By default Apple uses a private TMP folder.

g_dir_make_tmp() returns `/var/folders/...` while the real
absolute path is `/private/var/folders/...`.
This caused a problem when the tmp-prefix is chopped off when building
the archive.
This commit is contained in:
Robin Gareus 2020-04-05 00:07:54 +02:00
parent bb925ea151
commit e52bdc55ad

View File

@ -487,7 +487,7 @@ TemplateManager::export_all_templates ()
error << string_compose(_("Could not make tmpdir: %1"), err->message) << endmsg;
return;
}
const string tmpdir (td);
const string tmpdir = PBD::canonical_path (td);
g_free (td);
g_clear_error (&err);