diff --git a/lsfg-vk-ui/src/backend.cpp b/lsfg-vk-ui/src/backend.cpp index 4d00607..0f00445 100644 --- a/lsfg-vk-ui/src/backend.cpp +++ b/lsfg-vk-ui/src/backend.cpp @@ -71,6 +71,9 @@ Backend::Backend() { config.profiles() = this->m_profiles; try { + std::filesystem::create_directories(path.parent_path()); + if (!std::filesystem::exists(path.parent_path())) + throw ls::error("unable to create configuration directory"); config.write(path); } catch (const std::exception& e) { std::cerr << "unable to write configuration:\n- " << e.what() << "\n";