Hi michaelk,
Thank you for advice. I found that RAM disk (tmpfs) is treat like other drive and files are copied to it (that is what I want), anyway I tried to set a rule for educational purposes. ;-)
I created a file
copying-instead-of-moving.nemo_action in
/usr/share/nemo/actions with the same permissions as other files there have. Inside the file I wrote:
Code:
Name=Copy instead of move
Active=true
Comment=Prevent moving files into test folder
Exec=cp %P/* /home/testuser/Documents/test/
Icon-Name=system-run-symbolic
Selection=Any
Extensions=Any
Unfortunately, it does not work. When I dragged and dropped files to
test folder, files were moved, not copied. I tried also with the followings
Code:
Exec=cp %P/* /home/testuser/Documents/test/*
Exec=cp * /home/testuser/Documents/test/
Exec=cp * /home/testuser/Documents/test/*
Exec=<cp %P/* /home/testuser/Documents/test/>
Exec=<cp %P/* /home/testuser/Documents/test/*>
Exec=<cp * /home/testuser/Documents/test/>
Exec=<cp * /home/testuser/Documents/test/*>
also with no success. After each modification I restarted Cinnamon (Ctrl+Alt+ESC), just in case.
Parameters for
Nemo actions I found on
sample.nemo_action.
Any ideas what I am doing wrong?