I want to add the script 'compress-pdf' to Thunar custom actions.
The script is the one posted in this answer, made to resize pdfs. It is based on
It was made for Nautilus, but, as stated there, it 'does not depend on any custom Nautilus variables and can be used with pretty much any file manager out there that supports custom menu actions.'
I have added the script into a text file, made it executable, and added the path to it into Thunar custom actions with the name 'resize pdf'.
But, when right-clicking the selected pdf and running 'resize pdf', I get this error:
Why is that and how to fix it?
(Maybe the zenity script needs indeed adjustment to work in Thunar custom actions?)