View Single Post
Old 10-03-2015, 08:13 PM   #281
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
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

Last edited by loviedovie; 10-04-2015 at 05:16 PM.
loviedovie is offline   Reply With Quote