Quote:
Originally Posted by zBear
is there a possibility to change default file types for KOReader to open?
I am using KPV Booklet and don't want KOReader to open pdf/txt (for example) from my PW2 main menu
|
You mean: "change the default file types for KPV Booklet to open"
It is KPV booklet that assigns the mime types to be handled with KOreader.
In answer to your question:
Yes.
Make the changes in the database that KPV booklet modified.
For inspiration (since you did not specify what you wanted changed nor what it should be changed to), see:
https://github.com/koreader/kpvbooklet
specifically, the mimes.{install, uninstall}.sql scripts.
Then, once you have those scripts edited to your liking (the uninstall to take out what you don't like, the install to add what you do), the commands would be:
Code:
sqlite3 /var/local/appreg.db < mimes.uninstall.sql
sqlite3 /var/local/appreg.db < mimes.install.sql
You might find it helpful to use sqlite3 to dump the contents of that database to a text file.
Then you could see what all it contains and how the information is organized.
sqlite3 is pre-installed on your Kindle.
While doing your changes, you will probably notice that a KPVbooklet install/uninstall sequence is non-deterministic.
Been that way forever and nobody seems to mind it.