diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-24 16:31:23 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-24 16:31:23 +0800 |
| commit | a0cc31ff581fb33c679b2016d2d00d4d86cb7031 (patch) | |
| tree | 365854d14605e569e32228b1a2a6d6225c4e38bd /utils | |
| parent | icons: better matching + add category icon (diff) | |
| download | caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.tar.gz caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.tar.bz2 caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.zip | |
refactor: path utils
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Paths.qml | 15 |
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` +} |