Catch XDG_CONFIG_HOME is not an absolute path

see https://discourse.ardour.org/t/glib-converterror-arch-linux/109362
This commit is contained in:
Robin Gareus 2023-10-22 00:14:24 +02:00
parent 711668267a
commit a59e64f1d8
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 6 additions and 1 deletions

View File

@ -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.