From 50e541efde611e3032b5396f8c8461ac5dd19bac Mon Sep 17 00:00:00 2001 From: Evertiro Date: Sat, 17 Jan 2026 07:24:41 -0600 Subject: paths: simulate variable expansion so $HOME works (#1093) Signed-off-by: Dan Griffiths --- utils/Paths.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/Paths.qml') 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 { -- cgit v1.2.3-freya