From 524497ab3bd9fbc43d09105f611ef8d20afc495a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 Mar 2019 09:27:22 +0100 Subject: Fix search for ingen_gui.ui --- src/gui/WidgetFactory.cpp | 3 +-- src/runtime_paths.cpp | 2 +- 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 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 -- cgit v1.2.1