13
0

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

View File

@ -61,7 +61,12 @@ AudioLibrary::AudioLibrary ()
sfdb_file_path = Glib::build_filename (sfdb_file_path, sfdb_file_name); sfdb_file_path = Glib::build_filename (sfdb_file_path, sfdb_file_name);
try {
src = Glib::filename_to_uri (sfdb_file_path); 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 // workaround for possible bug in raptor that crashes when saving to a
// non-existant file. // non-existant file.