Thunar custom action
Posted: Wed 13 Jul 2016, 20:36
Trying to make a thunar custom action that zips files.
This is not working.
Anyone know why ?
This is not working.
Anyone know why ?
Code: Select all
zip -u %f
READ-ONLY Archive
https://oldforum.puppylinux.com/
Code: Select all
zip -u %f
Just messingFrom Rox help wrote: System(Command) executes `Command' on the file. The test succeeds if the command returns an exit status of zero. A `%' character in `Command' is replaced by the full path of the file being checked. System is a very slow test to perform, so do it last if possible. For example, if you're looking for a `.c' file containing the word `main', do:
'*.c' system(grep -q main "%")
so that the grep is only performed for files ending in `.c' (as opposed to only checking that the file ends in `.c' if it contains the word `main').
Code: Select all
# zip -u %f
zip warning: %f.zip not found or empty
# zip -u %
zip warning: %.zip not found or empty
# zip -u $@
zip error: Invalid command arguments (cannot write zip file to terminal)
# zip -u "%"
zip warning: %.zip not found or empty
# zip -u "%f"
zip warning: %f.zip not found or empty
#
Code: Select all
zip -u -j %n.zip %F