diff options
-rwxr-xr-x | contrib/grimshot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/grimshot b/contrib/grimshot index d42fe9d8..1ec19def 100755 --- a/contrib/grimshot +++ b/contrib/grimshot @@ -13,8 +13,8 @@ ## See `man 1 grimshot` or `grimshot usage` for further details. getTargetDirectory() { - test -f "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs" && \ - . "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs" + test -f "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" && \ + . "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" echo "${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}" } |