From 05d692d9368e6e6d4357cec55852d56009f9d803 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Sat, 17 Sep 2022 15:16:05 -0400 Subject: [PATCH] Increase delay to give more time before deletion --- sway/wallpaper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/wallpaper.pl b/sway/wallpaper.pl index f1c2efd..5aabc79 100755 --- a/sway/wallpaper.pl +++ b/sway/wallpaper.pl @@ -357,7 +357,7 @@ sub run if ($self->{crop}) { $self->do_log('LOG_DEBUG', "Deleting $cropped"); # Give swaybg a second, otherwise the file will be missing before it ends - sleep(1); + sleep(2); unlink($cropped) || $self->do_log("LOG_WARNING", "Failed to delete $cropped after setting: $!"); } } else {