- std::string icsd_file_path;
- if (find_file_in_search_path (PBD::Searchpath(Glib::getenv("PATH")), X_("harvid"), icsd_file_path)) {
- path_entry.set_text(icsd_file_path);
- }
- else if (Glib::file_test(X_("C:\\Program Files\\harvid\\harvid.exe"), Glib::FILE_TEST_EXISTS)) {
- path_entry.set_text(X_("C:\\Program Files\\harvid\\harvid.exe"));
- }
- else {
+ std::string harvid_exe;
+ if (ArdourVideoToolPaths::harvid_exe(harvid_exe)) {
+ path_entry.set_text(harvid_exe);
+ } else {