| 235 | } |
| 236 | |
| 237 | static void registerInstalledApps(const std::string& path) { |
| 238 | LOGGER.info("Registering apps from {}", path); |
| 239 | |
| 240 | file::listDirectory(path, [&path](const auto& entry) { |
| 241 | auto absolute_path = std::format("{}/{}", path, entry.d_name); |
| 242 | if (file::isDirectory(absolute_path)) { |
| 243 | registerInstalledApp(absolute_path); |
| 244 | } |
| 245 | }); |
| 246 | } |
| 247 | |
| 248 | static void registerInstalledAppsFromFileSystems() { |
| 249 | file_system_for_each(nullptr, [](auto* fs, void* context) { |
no test coverage detected