diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index befc5235c8..e65f032a84 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -82,14 +82,15 @@ run_functor_for_paths (vector& result, bool recurse) { for (vector::const_iterator i = paths.begin(); i != paths.end(); ++i) { - string expanded_path = path_expand (*i); - DEBUG_TRACE (DEBUG::FileUtils, - string_compose("Find files in expanded path: %1\n", expanded_path)); - - if (!Glib::file_test (expanded_path, Glib::FILE_TEST_IS_DIR)) continue; - try { + string expanded_path = path_expand (*i); + + DEBUG_TRACE (DEBUG::FileUtils, + string_compose("Find files in expanded path: %1\n", expanded_path)); + + if (!Glib::file_test (expanded_path, Glib::FILE_TEST_IS_DIR)) continue; + Glib::Dir dir(expanded_path); for (Glib::DirIterator di = dir.begin(); di != dir.end(); di++) { @@ -137,10 +138,18 @@ run_functor_for_paths (vector& result, } } catch (Glib::FileError const& err) { +#ifndef NDEBUG warning << string_compose (_("Cannot access file: %1"), err.what()) << endmsg; +#endif } catch (Glib::ConvertError const& err) { +#ifndef NDEBUG warning << string_compose (_("Could not convert filename: %1"), err.what()) << endmsg; +#endif + } catch (...) { +#ifndef NDEBUG + warning << string_compose (_("Could not convert filename: '%1'"), *i) << endmsg; +#endif } } } diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build index 5c31814071..942f279c0c 100755 --- a/tools/linux_packaging/build +++ b/tools/linux_packaging/build @@ -656,6 +656,10 @@ cp $BUILD_ROOT/gtk2_ardour/ardour.menus $Etc cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Etc cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Etc +if test -n "$LIVETRAX"; then + cp $BUILD_ROOT/gtk2_ardour/livetrax.keys $Resources +fi + # Copied directly from source tree mkdir ${Shared}/icons diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index e12f6a361d..23f0f7bcb4 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -515,6 +515,10 @@ cp $BUILD_ROOT/gtk2_ardour/ardour.menus $Resources cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Resources cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Resources +if test -n "$LIVETRAX"; then + cp $BUILD_ROOT/gtk2_ardour/livetrax.keys $Resources +fi + # Copied directly from source tree mkdir ${Resources}/icons