Quote:
Originally Posted by Adam B.
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.
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....