diff options
Diffstat (limited to '')
| -rw-r--r-- | utils/Paths.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml index 3b7e84f..8350fb1 100644 --- a/utils/Paths.qml +++ b/utils/Paths.qml @@ -19,7 +19,6 @@ Singleton { readonly property string imagecache: `${cache}/imagecache` readonly property string notifimagecache: `${imagecache}/notifs` readonly property string wallpaper: Quickshell.env("CAELESTIA_WALLPAPER") || absolutePath(Config.paths.wallpaper) - readonly property string face: Quickshell.env("CAELESTIA_FACE") || absolutePath(Config.paths.face) readonly property string libdir: Quickshell.env("CAELESTIA_LIB_DIR") || "/usr/lib/caelestia" function toLocalFile(path: url): string { @@ -28,7 +27,7 @@ Singleton { } function absolutePath(path: string): string { - return toLocalFile(path.replace("~", home)); + return toLocalFile(path.replace(/~|(\$({?)HOME(}?))+/, home)); } function shortenHome(path: string): string { |