From 328ab431655f207a5ee59737291f8e8d85fab992 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 2 Mar 2024 19:06:09 +0000 Subject: [PATCH] hyprpm: don't copy .so if file doesn't exist ref #4926 --- hyprpm/src/core/DataState.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"},