Template files reside in
.config/ardour5/templates/$(template_name)/$(template_name).template
We run through .config/ardour5/templates/ and find there the names of the
directories the .template-files are located in. These directory names don't
have a .template extension. So we shouldn't try to chop the non existing
extension of, because then we only modify template names with a '.' in them.
#include <glibmm.h>
-#include "pbd/basename.h"
#include "pbd/file_utils.h"
#include "pbd/stl_delete.h"
#include "pbd/xml++.h"
TemplateInfo rti;
- rti.name = basename_nosuffix (*i);
+ rti.name = Glib::path_get_basename (*i);
rti.path = *i;
template_names.push_back (rti);