- I use thunar as a file manager
- I want to use "custom actions" on certain files (Thunar --> Edit --> Configure Custom Actions...)
- the command I use is:
xfce4-terminal -e "md5sum '%F'" --hold
This works fine, except when the file path or file name contains a space. It just won't work as intended because the file can then not be found.
I think this is because the spaces in the file path are not automatically escaped
How do I solve this problem? Thank you in advance
Seems like Thunar replaces
%Fwith (potentially multiple) correctly quoted paths. Putting this inside quotes will ruin the already perfect quoting. From https://docs.xfce.org/xfce/thunar/custom-actionsYou need a way to pass an argument list to a command running inside
xfce4-terminal. Luckilyman xfce4-terminallists:Therefore, try