View Single Post
Old 11-13-2008, 09:28 AM   #47
ghostwheel
Zealot
ghostwheel has learned how to buy an e-book online
 
Posts: 133
Karma: 93
Join Date: May 2006
Device: DBoox Max,Galaxy note 10.1 & 3,LE1700 tablet,sony PRS-500,iRex DR1000S
Quote:
Originally Posted by Adam B. View Post
It doesn't appear to be to difficult to port. I have it running in the emulator.
Amazing! Cool!!
Quote:
Originally Posted by Adam B. View Post
Now getting it to work with the right file formats is a different issue...
I thought of two solutions (well, maybe hacks...)

First, the ugly one is a script that creates an additional .desktop file for the files you'd like to read, that will then call the program with the right argument. Kind of like starting FBReader, but instead starting it already with the argument saying which file it should display. That would certainly work, and would certainly be ugly. The best would be probably to have all the .desktop files in a different directory than the files so you don't see everything twice.

The second option which I'm not sure will work is to write a plugin for iRex's viewer shell that can start a script when called. But I don't know if this is possible or feasible.

But the first should be easy.
I did this:
One file called Animals.desktop, containing
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Animals
Comment=E-book reader
Exec=/media/mmcblk0p1/Programs/_fbreader/bin/fbreader2
Type=Application
Icon=/media/mmcblk0p1/Programs/_fbreader/share/pixmaps/FBReader.png
And a script called Programs/_fbreader/bin/fbreader2

Containing:
Code:
#!/bin/sh

/media/mmcblk0p1/Programs/_fbreader/bin/FBReader /media/mmcblk0p1/Documents/animals.html
Ugly, but it works. It would be easy to make a script that runs over your disk and creates these files automatically....
ghostwheel is offline   Reply With Quote