From 59956ce32a3a8ddf7f4be7eb06ead21739c7f9f4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 17 Jul 2022 14:12:03 +0200 Subject: [PATCH] oops --- src/Hyprpaper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Hyprpaper.cpp b/src/Hyprpaper.cpp index 768eaeb..455c847 100644 --- a/src/Hyprpaper.cpp +++ b/src/Hyprpaper.cpp @@ -125,7 +125,8 @@ void CHyprpaper::removeOldHyprpaperImages() { // unlink it memoryFreed += entry.file_size(); - std::filesystem::remove(FILENAME); + if (!std::filesystem::remove(entry.path())) + Debug::log(LOG, "Couldn't remove %s", entry.path().string().c_str()); cleaned++; } }