From e52bdc55ad9334a4038419463596ff0ad1a42357 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 5 Apr 2020 00:07:54 +0200 Subject: [PATCH] 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. --- gtk2_ardour/template_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/template_dialog.cc b/gtk2_ardour/template_dialog.cc index 70353c0c56..46504f874e 100644 --- a/gtk2_ardour/template_dialog.cc +++ b/gtk2_ardour/template_dialog.cc @@ -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);