diff --git a/bin/glurp b/bin/glurp index bc584ba..7bae1a9 100755 --- a/bin/glurp +++ b/bin/glurp @@ -66,7 +66,7 @@ case "$1" in grim_args+=(-) ;; file) - grim_args+=("$(screenshot_path "/tmp/${USER}")") + grim_args+=("$(screenshot_path "${XDG_RUN_TIME_DIR:-/tmp/$(whoami)}/screenshots")") ;; *) false @@ -81,4 +81,3 @@ EOF trap clean EXIT sh -s < "${temp_files[command_to_source]}" -