summaryrefslogtreecommitdiff
path: root/libs/ardour/filesystem_paths.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/filesystem_paths.cc')
-rw-r--r--libs/ardour/filesystem_paths.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc
index 69b00393a8..dd41198142 100644
--- a/libs/ardour/filesystem_paths.cc
+++ b/libs/ardour/filesystem_paths.cc
@@ -85,4 +85,22 @@ system_config_search_path ()
return config_path;
}
+SearchPath
+system_data_search_path ()
+{
+#ifdef WITH_STATIC_PATHS
+
+ SearchPath data_path(string(DATA_DIR));
+
+#else
+
+ SearchPath data_path(system_data_directories());
+
+#endif
+
+ data_path.add_subdirectory_to_paths("ardour2");
+
+ return data_path;
+}
+
} // namespace ARDOUR