mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 10:26:00 +01:00
parent
d2289d8327
commit
328ab43165
1 changed files with 2 additions and 1 deletions
|
@ -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"},
|
||||
|
|
Loading…
Reference in a new issue