diff --git a/utils/Paths.qml b/utils/Paths.qml index f95134f4..bc89770a 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 {