summaryrefslogtreecommitdiff
path: root/utils/Paths.qml
diff options
context:
space:
mode:
authorEvertiro <dgriffiths@widgit.io>2026-01-17 07:24:41 -0600
committerGitHub <noreply@github.com>2026-01-18 00:24:41 +1100
commit50e541efde611e3032b5396f8c8461ac5dd19bac (patch)
treef5cbdf38e2d8a90b3b522768432c1241e640bce7 /utils/Paths.qml
parentsysinfo: allow overriding OS icon (#1091) (diff)
downloadcaelestia-shell-50e541efde611e3032b5396f8c8461ac5dd19bac.tar.gz
caelestia-shell-50e541efde611e3032b5396f8c8461ac5dd19bac.tar.bz2
caelestia-shell-50e541efde611e3032b5396f8c8461ac5dd19bac.zip
paths: simulate variable expansion so $HOME works (#1093)
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
Diffstat (limited to 'utils/Paths.qml')
-rw-r--r--utils/Paths.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml
index f95134f..bc89770 100644
--- a/utils/Paths.qml
+++ b/utils/Paths.qml
@@ -28,7 +28,7 @@ Singleton {
}
function absolutePath(path: string): string {
- return toLocalFile(path.replace("~", home));
+ return toLocalFile(path.replace(/~|(\$({?)HOME(}?))+/, home));
}
function shortenHome(path: string): string {