Speaking off the head without looking into, but I have the impression that for that a shell script in the applications/ directory should be easier to put together than a compiled executable linked with whatever sdk. Like in, count all the *.epub files in candidate directories, pick the $RANDOM-th pathname, and call the reader app with that as argument. Of course there might be fancier or obscurer ways, like querying the native book database.
|