From 653dc9c95f2370ba2da7cf5b101c6b8478e59ee0 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 10 Mar 2026 08:22:46 +0100 Subject: [PATCH] directories: add user ai prompts dir creation --- .../ii/modules/common/Directories.qml | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/Directories.qml b/dots/.config/quickshell/ii/modules/common/Directories.qml index 814d5d973..25a2e2ada 100644 --- a/dots/.config/quickshell/ii/modules/common/Directories.qml +++ b/dots/.config/quickshell/ii/modules/common/Directories.qml @@ -58,15 +58,22 @@ Singleton { // Cleanup on init Component.onCompleted: { - Quickshell.execDetached(["mkdir", "-p", `${shellConfig}`]) - Quickshell.execDetached(["mkdir", "-p", `${userComponents}`]) - Quickshell.execDetached(["mkdir", "-p", `${favicons}`]) - Quickshell.execDetached(["bash", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`]) - Quickshell.execDetached(["bash", "-c", `rm -rf '${booruPreviews}'; mkdir -p '${booruPreviews}'`]) - Quickshell.execDetached(["bash", "-c", `rm -rf '${latexOutput}'; mkdir -p '${latexOutput}'`]) - Quickshell.execDetached(["bash", "-c", `rm -rf '${cliphistDecode}'; mkdir -p '${cliphistDecode}'`]) Quickshell.execDetached(["mkdir", "-p", `${aiChats}`]) - Quickshell.execDetached(["mkdir", "-p", `${userActions}`]) + Quickshell.execDetached(["mkdir", "-p", `${favicons}`]) + Quickshell.execDetached(["mkdir", "-p", `${shellConfig}`]) Quickshell.execDetached(["rm", "-rf", `${tempImages}`]) + Quickshell.execDetached(["mkdir", "-p", `${userComponents}`]) + Quickshell.execDetached(["mkdir", "-p", `${userAiPrompts}`]) + Quickshell.execDetached(["mkdir", "-p", `${userActions}`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${booruPreviews}'; mkdir -p '${booruPreviews}'`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${cliphistDecode}'; mkdir -p '${cliphistDecode}'`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${latexOutput}'; mkdir -p '${latexOutput}'`]) + } + Component.onDestruction: { + Quickshell.execDetached(["bash", "-c", `rm -rf '${booruPreviews}'; mkdir -p '${booruPreviews}'`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${cliphistDecode}'; mkdir -p '${cliphistDecode}'`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`]) + Quickshell.execDetached(["bash", "-c", `rm -rf '${latexOutput}'; mkdir -p '${latexOutput}'`]) } }