View Single Post
Old 12-19-2016, 06:58 AM   #1
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 801
Karma: 628976
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Selector&Epubinfo - bringing "open with" menu back in FW5

Since Pocketbook removed/crippled the open with menu in FW5, extension.cfg is not what it was before.
Epubinfo.app was helping to overcome this limit regarding the epub-file format. I wanted this for other filetypes to (f.i. to decide if KoReader or AdobeViewer should be used with pdf-files).

This is a quick and dirty patch of epubinfo.app to have it working with other filetypes too. I renamed it to avoid confusion. Program changes are in an early state. If other filetypes than epub are opened, the program now shows only standard cover without any infos and after clicking at the center of screen allows the selection of the opening app, following the entries in extension.cfg.

I couldn't get Koreader in the actual configuration work properly with it, but after changing the /system/bin/koreader.app
before:
Quote:
if [ `echo $@ | wc -c` -eq 1 ]; then
args="/mnt/ext1/"
else
args="$@"
fi
into:
Quote:
if [ `echo $@ | wc -c` -eq 1 ]; then
#args="/mnt/ext1/"
args="$1"
else
args="$1"
fi
it seems to work fine.

Thanks goes to SirSteiner and the unknown original French author of epubinfo for providing the sources. Compiled version is for PB626 FW5.

selector.app goes into /system/bin and extension.cfg has to be changed/created accordingly f.i.:
Quote:
pdf:@PDF_pdf:@PDF_file:1:selector.app,AdobeViewer. app,koreader.app:ICON_PDF
Bugs: Filenames with "." are not working properly.

Tip: Combined with https://github.com/Lighting/Setup-openwith it works even better.
Attached Files
File Type: zip Selector.zip (51.4 KB, 651 views)

Last edited by nhedgehog; 02-27-2017 at 02:16 AM. Reason: clarifications
nhedgehog is offline   Reply With Quote