From a59e64f1d8b80452ba8725382735e7111c15d2d9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 22 Oct 2023 00:14:24 +0200 Subject: [PATCH] Catch XDG_CONFIG_HOME is not an absolute path see https://discourse.ardour.org/t/glib-converterror-arch-linux/109362 --- libs/ardour/audio_library.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audio_library.cc b/libs/ardour/audio_library.cc index c9ada69fa0..71d143fc6a 100644 --- a/libs/ardour/audio_library.cc +++ b/libs/ardour/audio_library.cc @@ -61,7 +61,12 @@ AudioLibrary::AudioLibrary () sfdb_file_path = Glib::build_filename (sfdb_file_path, sfdb_file_name); - src = Glib::filename_to_uri (sfdb_file_path); + try { + src = Glib::filename_to_uri (sfdb_file_path); + } catch (Glib::ConvertError const& err) { + fatal << string_compose (_("Could not get config folder: %1"), err.what ()) << endmsg; + abort (); /*NOTREACHED*/ + } // workaround for possible bug in raptor that crashes when saving to a // non-existant file.