Hi.
I created a script for have a "recycle bin".
The script simply moves a file to a specified folder.
I aliased the command "rm" to the command "trash" (the script) in the bash shell.
This hack works well under a terminal, but I'm using freebsd as a desktop, in particular, I'm using rox-filer as a file manager, so I want that when I delete a file under rox-filer, then, rox-filer runs the "trash" script, but it not works.
I suppose that rox uses a shell to do the commands (rm, mount, umount , and so on), so, when it runs "rm" then, because the alias, will run the "trash"script, but not works.
Rox should use a shell for do the commands?
How can I do?
Thanks
I created a script for have a "recycle bin".
The script simply moves a file to a specified folder.
I aliased the command "rm" to the command "trash" (the script) in the bash shell.
This hack works well under a terminal, but I'm using freebsd as a desktop, in particular, I'm using rox-filer as a file manager, so I want that when I delete a file under rox-filer, then, rox-filer runs the "trash" script, but it not works.
I suppose that rox uses a shell to do the commands (rm, mount, umount , and so on), so, when it runs "rm" then, because the alias, will run the "trash"script, but not works.
Rox should use a shell for do the commands?
How can I do?
Thanks