[Thunar-dev] Custom actions

Dani dani at damufo.com
Wed Mar 6 12:31:28 CET 2019


Hello:

I'm trying to do a personalized action. In this case I try to move a 
file from one folder to another.
This command works well in the terminal more when I put it as a custom 
order it will not
If I'm not mistaken, the error is in the replacement.


for i in %F; do source=$i; moveTo="/blog_src/"; 
target="${source/\/blog_web\//$moveTo}"; mv $source $target; done


This work fine on terminal:
for i in "/home/dani/blog/blog.org/blog_web/tprd/1819/file1.odt" 
"/home/dani/blog/blog.org/blog_web/tprd/1819/file2.odt"; do source=$i; 
moveTo="/blog_src/"; target="${source/\/blog_web\//$moveTo}"; mv $source 
$target; done;


Is this an error or am I doing something wrong?


Very thanks!

-- 
Dani




More information about the Thunar-dev mailing list