about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoremberfade <emberfade@users.noreply.github.com>2020-02-22 23:04:09 +0100
committerGitHub <noreply@github.com>2020-02-22 23:04:09 +0100
commite97608c35fcd5bea98a588e11d65ddcbe682a08a (patch)
tree8d059b2f35ea6f37dc75e50a3f3b73b999162d75
parent870435dd9bec311d0866eb4a801ff174366ed0a9 (diff)
downloadranger-e97608c35fcd5bea98a588e11d65ddcbe682a08a.tar.gz
rifle.conf: change fallback trash location
Change the fallback trash location to use the correct environment variable and
ranger's default data directory.
-rw-r--r--ranger/config/rifle.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index 86f53fd1..0307e2c8 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -281,4 +281,4 @@ mime application/x-executable = "$1"
 
 # Move the file to trash using trash-cli.
 label trash, has trash-put = trash-put -- "$@"
-label trash = mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash; mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash
+label trash = mkdir -p -- "${XDG_DATA_HOME:-$HOME/.local/share}/ranger/trash"; mv -- "$@" "${XDG_DATA_HOME:-$HOME/.local/share}/ranger/trash"