summaryrefslogtreecommitdiff
path: root/utils/Paths.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 16:31:23 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 16:31:23 +0800
commita0cc31ff581fb33c679b2016d2d00d4d86cb7031 (patch)
tree365854d14605e569e32228b1a2a6d6225c4e38bd /utils/Paths.qml
parenticons: better matching + add category icon (diff)
downloadcaelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.tar.gz
caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.tar.bz2
caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.zip
refactor: path utils
Diffstat (limited to 'utils/Paths.qml')
-rw-r--r--utils/Paths.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml
new file mode 100644
index 0000000..011bb1f
--- /dev/null
+++ b/utils/Paths.qml
@@ -0,0 +1,15 @@
+pragma Singleton
+
+import Quickshell
+import Qt.labs.platform
+
+Singleton {
+ id: root
+
+ readonly property url home: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]
+ readonly property url pictures: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]
+
+ 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`
+}