From 9503ca2129a1e1125bd0d045d9c8b1d1a2d5a017 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 29 May 2025 09:21:56 +0200 Subject: [PATCH] cliphist image: cleanup decoded img on destruction --- .config/quickshell/modules/common/widgets/CliphistImage.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/quickshell/modules/common/widgets/CliphistImage.qml b/.config/quickshell/modules/common/widgets/CliphistImage.qml index f0b07d3f1..088f6373a 100644 --- a/.config/quickshell/modules/common/widgets/CliphistImage.qml +++ b/.config/quickshell/modules/common/widgets/CliphistImage.qml @@ -69,6 +69,10 @@ Rectangle { } } + Component.onDestruction: { + Hyprland.dispatch(`exec bash -c "[ -f '${imageDecodeFilePath}' ] && rm -f '${imageDecodeFilePath}'"`) + } + Image { id: image anchors.fill: parent