diff --git a/hyprpm/src/core/DataState.cpp b/hyprpm/src/core/DataState.cpp index b6b34375..a7f9a7ae 100644 --- a/hyprpm/src/core/DataState.cpp +++ b/hyprpm/src/core/DataState.cpp @@ -50,7 +50,8 @@ void DataState::addNewPluginRepo(const SPluginRepository& repo) { }; for (auto& p : repo.plugins) { // copy .so to the good place - std::filesystem::copy_file(p.filename, PATH + "/" + p.name + ".so"); + if (std::filesystem::exists(p.filename)) + std::filesystem::copy_file(p.filename, PATH + "/" + p.name + ".so"); DATA.emplace(p.name, toml::table{ {"filename", p.name + ".so"},