View Single Post
Old 07-08-2010, 06:28 AM   #1
yacoob
Zealot
yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.
 
yacoob's Avatar
 
Posts: 120
Karma: 1326
Join Date: Feb 2009
Device: none
Pageflow/fullscreen with UI

Let me begin with a big fat disclaimer: I'm in no way a developer, and to call my C rusty would be a compliment. In the attachment you can find both source code and binary build of a small daemon, that once running, will try to add 'page flow' and 'fullscreen' options to popupmenu, for eligible files. There are still quirks to be fixed (see TODO), but it roughly works.

I'd be grateful for any comments, about both functionality and the code itself. I'm not that confident that I don't sport memory leaks, but I couldn't use valgrind to test that, as valgrind doesn't support ARM architecture. I'll put the source on github later on, and once I'm happy with the daemon - publish it for public consumption in iRex forum :)

How to use: either grab the binary build and put it in proper place, or grab the source and build your binary from the scratch. There are two .desktop files included, one of them will launch trickd, other - kill it. Once it's launched, two new options should appear in the popup menu, for PDF files. This program uses the same method as my earlier script, so toggling either of those options would end up closing all opened files, possibly dropping back to main menu, flipping the option in db, then reopening the file. At the moment I don't have any other good way of asking uds to sync its data to disk.
Attached Files
File Type: gz trickd.tar.gz (6.6 KB, 533 views)
File Type: zip trickd.zip (8.9 KB, 473 views)

Last edited by yacoob; 07-08-2010 at 08:16 AM. Reason: typo
yacoob is offline   Reply With Quote