Skip to content

Commit

Permalink
use kioclient if installed for delete-to-trash (close #2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmz committed Mar 10, 2024
1 parent 8d5d85d commit ceeacc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion far2l/bootstrap/trash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ if [ -x ~/.config/far2l/trash.sh ]; then
. ~/.config/far2l/trash.sh
fi

if command -v gio >/dev/null 2>&1; then
if command -v kioclient >/dev/null 2>&1; then
kioclient move "$1" trash:/ 2>"$2"

elif command -v gio >/dev/null 2>&1; then
gio trash -f -- "$1" 2>"$2"

elif command -v gvfs-trash >/dev/null 2>&1; then
Expand Down

0 comments on commit ceeacc1

Please sign in to comment.