aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar llyyr <llyyr.public@gmail.com>2022-07-30 12:41:16 +0530
committerLibravatar Simon Ser <contact@emersion.fr>2022-07-30 09:25:24 +0200
commit9e879242fd1f1230d34337984cca565d84b932bb (patch)
tree7673020aeadfb484c16c1cc70c6e04755ee1f6d5
parentipc: make get_deco_rect check config->hide_lone_tab (diff)
downloadsway-9e879242fd1f1230d34337984cca565d84b932bb.tar.gz
sway-9e879242fd1f1230d34337984cca565d84b932bb.tar.zst
sway-9e879242fd1f1230d34337984cca565d84b932bb.zip
grimshot: fix tilde expansion within quotes
-rwxr-xr-xcontrib/grimshot4
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 @@
13## See `man 1 grimshot` or `grimshot usage` for further details. 13## See `man 1 grimshot` or `grimshot usage` for further details.
14 14
15getTargetDirectory() { 15getTargetDirectory() {
16 test -f "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs" && \ 16 test -f "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" && \
17 . "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs" 17 . "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs"
18 18
19 echo "${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}" 19 echo "${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}"
20} 20}