Hi
If you are interested in being able to run K2Pdfopt gui from Calibre under Linux this is the one
Code:
#!/bin/bash
export CURRA="$*"
export FILEPATH=$(/usr/bin/winepath-development -w $CURRA)
/usr/bin/wine /opt/K2PdfOpt/k2pdfopt.exe "$FILEPATH"
You have to have wine for linux installed along with the windows version of K2PdfOpt (under /opt/K2PdfOpt)
Once the setup is done you can define your "open with" entry and point out to this script.
Thanks