summaryrefslogtreecommitdiff
path: root/utils/Paths.qml
diff options
context:
space:
mode:
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 {