summaryrefslogtreecommitdiffstats
path: root/kdirstat/fix_move_to_trash_bin.pl
diff options
context:
space:
mode:
Diffstat (limited to 'kdirstat/fix_move_to_trash_bin.pl')
-rwxr-xr-xkdirstat/fix_move_to_trash_bin.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/kdirstat/fix_move_to_trash_bin.pl b/kdirstat/fix_move_to_trash_bin.pl
new file mode 100755
index 0000000..6a42af8
--- /dev/null
+++ b/kdirstat/fix_move_to_trash_bin.pl
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+#
+# Replace ~/KDesktop/Trash to %t
+#
+while( <> )
+{
+ s:~?\S*/\S*Trash\S*:%t: if ( /^\s*command\s*=\s*kfmclient\s+move/ );
+ print $_;
+}