Sample Header Ad - 728x90

Thunar custom actions - how to import selections into zsh script

0 votes
1 answer
45 views
Xubuntu 22.04 Thunar 4.16 I am working on a script that works similarly to detox but does not require root privileges as it will only be allowed to operate on files or folders in the user's home directory providing that the file itself is not hidden or that there are no hidden folders anywhere in its path. The idea here is to navigate to a given folder using Thunar and if I see a file or folder that contains, for example, either white spaces or dots used as delimiters, I could right click on the file and initiate a zsh script that would remove illegal characters, etc and output a filename in Title case with lower case extension using underscores as delimiters. Under Edit/Configure custom actions/command I have
-terminal -e "/home/terry/bin/thunar_custom_actions/ffn.sh  -- %F"
the script is, of course, executable. The only hint I've managed to find to allow the script to import the selections is
in "$@"; do
I have also tried
in %F; do
but all I get is the terminal opening and immediately closing again. Any hints, suggestions or ideas how I can resolve this?
Asked by Terry (43 rep)
Mar 16, 2024, 11:55 AM
Last activity: Mar 21, 2024, 12:45 AM