From a0cc31ff581fb33c679b2016d2d00d4d86cb7031 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 24 May 2025 16:31:23 +0800 Subject: refactor: path utils --- utils/Paths.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 utils/Paths.qml (limited to 'utils/Paths.qml') 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` +} -- cgit v1.2.3-freya