diff options
| author | Evertiro <dgriffiths@widgit.io> | 2026-01-17 07:24:41 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 00:24:41 +1100 |
| commit | 50e541efde611e3032b5396f8c8461ac5dd19bac (patch) | |
| tree | f5cbdf38e2d8a90b3b522768432c1241e640bce7 /utils | |
| parent | sysinfo: allow overriding OS icon (#1091) (diff) | |
| download | caelestia-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')
| -rw-r--r-- | utils/Paths.qml | 2 |
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 { |