View Single Post
Old 05-26-2015, 07:10 AM   #47
ibat
Fool
ibat began at the beginning.
 
ibat's Avatar
 
Posts: 71
Karma: 45
Join Date: Oct 2007
Device: HanLin V3, Cybook Odyssey HD, PocketBook PB626, PB632
Quote:
Originally Posted by brucelee View Post
The open with menu is limited to fbreader and adobe.
If you want to use another app to open your books you have to set it as the first one in extensions.cfg.
Example:


Here's the recommended FW5 extensions.cfg for coolreader: github.com
Cool! Somebody seems to be listening to the rant about being able to select the preferred reader.

I just noticed in fw5.7.515 in
"SETTINGS/Personalize/Default reader for ePUB" you can choose you preferred ePub reader. Which is very nice because if you for instance select coolreader, it runs a straight forward script
Pocket626/system/config/settings/default_coolreader.app
Code:
#!/bin/sh

extensions=/mnt/ext1/system/config/extensions.cfg
cr3binpath=/mnt/ext1/system/bin
reader1=AdobeViewer.app
reader2=fbreader.app
reader3=cr3-pb.app
reader4=epubinfo.app

if [ -f $extensions ] ; then
        if [ -f $cr3binpath/$reader3 ] ; then
                sed -i "s/^epub:.*/epub:@EPUB_file:1:$reader3,$reader1,$reader2,$reader4:ICON_EPUB/" $extensions
        else
                sed -i "s/^epub:.*/epub:@EPUB_file:1:$reader1,$reader2,$reader4:ICON_EPUB/" $extensions
        fi
else
        if [ -f $cr3binpath/$reader3 ] ; then
                echo "epub:@EPUB_file:1:$reader3,$reader1,$reader2,$reader4:ICON_EPUB/" > $extensions
        else
                echo "epub:@EPUB_file:1:$reader1,$reader2,$reader4:ICON_EPUB/" > $extensions
        fi
fi
sync
So this in an interface to run an arbitrary script in the settings. The settings menu seems to be controlled by default_reader.json you can add your own entry there:

Code:
+       },
+       {
+               "control_type":"executable",
+               "icon_id":"ci_panel_config",
+               "id":"just_testing",
+               "storage":[
+                       "/mnt/ext1/system/config/settings/just_testing.app"
+               ],
+               "title_id":"@Just_Testing",
        }
! ]

I just love open software!
ibat is offline   Reply With Quote