summaryrefslogtreecommitdiff
path: root/utils/Paths.qml
diff options
context:
space:
mode:
authorTim Hämisch <haemtim@gmail.com>2025-06-13 17:49:49 +0200
committerGitHub <noreply@github.com>2025-06-13 17:49:49 +0200
commit5fb727a4c8d9e89acc63a1c353202423bc7b120e (patch)
tree28839211a383025df53168993d090cdccaa9bf7a /utils/Paths.qml
parentAdd shutdown, reboot, and logout actions to launcher (diff)
parentdocs: add contributing.md (diff)
downloadcaelestia-shell-5fb727a4c8d9e89acc63a1c353202423bc7b120e.tar.gz
caelestia-shell-5fb727a4c8d9e89acc63a1c353202423bc7b120e.tar.bz2
caelestia-shell-5fb727a4c8d9e89acc63a1c353202423bc7b120e.zip
Merge branch 'caelestia-dots:main' into betteractions
Diffstat (limited to 'utils/Paths.qml')
-rw-r--r--utils/Paths.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml
index 011bb1f..88267ea 100644
--- a/utils/Paths.qml
+++ b/utils/Paths.qml
@@ -1,6 +1,7 @@
pragma Singleton
import Quickshell
+import Quickshell.Io
import Qt.labs.platform
Singleton {
@@ -12,4 +13,19 @@ Singleton {
readonly property url data: `${StandardPaths.standardLocations(StandardPaths.GenericDataLocation)[0]}/caelestia`
readonly property url state: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia`
readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/caelestia`
+
+ readonly property url imagecache: `${cache}/imagecache`
+
+ function mkdir(path: url): void {
+ mkdirProc.path = path.toString().replace("file://", "");
+ mkdirProc.startDetached();
+ }
+
+ Process {
+ id: mkdirProc
+
+ property string path
+
+ command: ["mkdir", "-p", path]
+ }
}