diff options
author | Vaxry <[email protected]> | 2024-03-02 19:06:09 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-02 19:06:09 +0000 |
commit | 328ab431655f207a5ee59737291f8e8d85fab992 (patch) | |
tree | e5950864044d70b7af7ba2e31ca40d2eac0ff56a /hyprpm | |
parent | d2289d8327d46e6b55c06b3c639fc138c3e02d1a (diff) | |
download | Hyprland-328ab431655f207a5ee59737291f8e8d85fab992.tar.gz Hyprland-328ab431655f207a5ee59737291f8e8d85fab992.zip |
hyprpm: don't copy .so if file doesn't exist
ref #4926
Diffstat (limited to 'hyprpm')
-rw-r--r-- | hyprpm/src/core/DataState.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"}, |