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:
parent
bb925ea151
commit
e52bdc55ad
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user