group Product/App specific resources

* only install icons relevant to product
 * use program-name (as-is) as prefix
 * keep icons/* for all products
This commit is contained in:
Robin Gareus 2016-05-17 13:12:05 +02:00
parent b7965a660d
commit 026f8dd80f
14 changed files with 26 additions and 23 deletions

View file

@ -465,6 +465,12 @@ ARDOUR_UI_UTILS::get_icon_path (const char* cname, string icon_set, bool is_imag
find_file (spath, name, data_file_path);
}
if (data_file_path.empty()) {
Searchpath rc (ARDOUR::ardour_data_search_path());
rc.add_subdirectory_to_paths ("resources");
find_file (rc, name, data_file_path);
}
if (is_image && data_file_path.empty()) {
if (!icon_set.empty() && icon_set != _("default")) {