summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/WidgetFactory.cpp3
-rw-r--r--src/runtime_paths.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/WidgetFactory.cpp b/src/gui/WidgetFactory.cpp
index 3a71425d..154bcd3f 100644
--- a/src/gui/WidgetFactory.cpp
+++ b/src/gui/WidgetFactory.cpp
@@ -60,8 +60,7 @@ WidgetFactory::find_ui_file()
return;
}
- throw std::runtime_error(fmt("Unable to find ingen_gui.ui in %1%\n",
- INGEN_DATA_DIR));
+ throw std::runtime_error("Unable to find ingen_gui.ui\n");
}
Glib::RefPtr<Gtk::Builder>
diff --git a/src/runtime_paths.cpp b/src/runtime_paths.cpp
index c4ee7c2b..2af0da45 100644
--- a/src/runtime_paths.cpp
+++ b/src/runtime_paths.cpp
@@ -111,7 +111,7 @@ bundle_file_path(const std::string& name)
FilePath
data_file_path(const std::string& name)
{
- return find_in_search_path(name, data_dirs());
+ return find_in_search_path(FilePath("ingen") / name, data_dirs());
}
std::vector<FilePath>