diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-18 22:33:38 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-18 22:33:38 +1000 |
| commit | e0972efdb4b906c719c5f5f80f3040e28a869843 (patch) | |
| tree | 35175d0d4dcc5fddb3f7de77cc561f61488a72ba /utils | |
| parent | wallpaper: add fallback and selector (diff) | |
| download | caelestia-shell-e0972efdb4b906c719c5f5f80f3040e28a869843.tar.gz caelestia-shell-e0972efdb4b906c719c5f5f80f3040e28a869843.tar.bz2 caelestia-shell-e0972efdb4b906c719c5f5f80f3040e28a869843.zip | |
feat: dashboard pfp picker
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Paths.qml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml index bd57608..cc8c712 100644 --- a/utils/Paths.qml +++ b/utils/Paths.qml @@ -1,7 +1,6 @@ pragma Singleton import Quickshell -import Quickshell.Io import Qt.labs.platform Singleton { @@ -17,16 +16,15 @@ Singleton { readonly property url imagecache: `${cache}/imagecache` - function mkdir(path: url): void { - mkdirProc.path = path.toString().replace("file://", ""); - mkdirProc.startDetached(); + function strip(path: url): string { + return path.toString().replace("file://", ""); } - Process { - id: mkdirProc - - property string path + function mkdir(path: url): void { + Quickshell.execDetached(["mkdir", "-p", strip(path)]); + } - command: ["mkdir", "-p", path] + function copy(from: url, to: url): void { + Quickshell.execDetached(["cp", strip(from), strip(to)]); } } |