Quote:
Originally Posted by kaileslie
Hi Viacheslav, thanks for your reply, but i dont quite understand step 2 Edit dr1000.ini adding /bin/sh /usr/bin/update_recent.sh <viewer> at each desired .../viewer-cmd= line. could you be more specific? should I add /bin/sh /usr/bin/update_recent.sh <viewer> to every /viewer-cmd= ??? thanks
|
Er. I was too lazy to write automatic modification of the schemas and ini.
You should:
- Open the dr1000.ini file on your SD card in any decent text editor.
- Find all lines containing ...viewer-cmd=.... Each of these lines corresponds to one type of files and contains the command used to call the corresponding viewer. Think, what filetypes you want to see in the new Recent folder.
Good result can be obtained for fb2, epub, djvu, plucker, html etc, supported by community developed viewers (FBReader, Evince, Midory). The viewers are available from this very forum. It is a bad idea to add the wrapper before the irex "uds" viewer, because you will not be able to close the open documents. There will be no close/search/lookup buttons for this viewer because the irex GUI uses some lame proprietary way to show tasks in the taskbar and icons in the menu.
- Add /bin/sh /usr/bin/update_recent.sh before the viewer command at the chosen lines.
- Open any file of the supported file type.
This is an excerpt from my dr1000.ini
Code:
...
/apps/er/sys/ctb/filetypes/doc-html/descr=HTML
/apps/er/sys/ctb/filetypes/doc-html/icon_name=html
/apps/er/sys/ctb/filetypes/doc-html/template_descr=HTML Template
/apps/er/sys/ctb/filetypes/doc-html/extensions=htm;html;xhtml;
/apps/er/sys/ctb/filetypes/doc-html/viewer_cmd=/bin/sh /usr/bin/update_recent.sh /media/mmcblk0p1/Programs/_midori/bin/midori
/apps/er/sys/ctb/filetypes/doc-fbreader/descr=FBReader
/apps/er/sys/ctb/filetypes/doc-fbreader/icon_name=fbreader
/apps/er/sys/ctb/filetypes/doc-fbreader/template_descr=FBReader Template
/apps/er/sys/ctb/filetypes/doc-fbreader/extensions=pdb;fb2;zip;rtf;orb;tcr;opf;oebzip;epub;chm;
/apps/er/sys/ctb/filetypes/doc-fbreader/viewer_cmd=/bin/sh /usr/bin/update_recent.sh /media/mmcblk0p1/Programs/_fbreader/bin/FBReader
/apps/er/sys/ctb/filetypes/text-shellscript/descr=Shellscript
/apps/er/sys/ctb/filetypes/text-shellscript/icon_name=shell
/apps/er/sys/ctb/filetypes/text-shellscript/template_descr=Shellscript Template
/apps/er/sys/ctb/filetypes/text-shellscript/extensions=sh;
/apps/er/sys/ctb/filetypes/text-shellscript/viewer_cmd=/bin/sh
/apps/er/sys/ctb/filetypes/doc-djvu/descr=DJVU
/apps/er/sys/ctb/filetypes/doc-djvu/icon_name=evince
/apps/er/sys/ctb/filetypes/doc-djvu/template_descr=DJVU Template
/apps/er/sys/ctb/filetypes/doc-djvu/extensions=djvu;
/apps/er/sys/ctb/filetypes/doc-djvu/viewer_cmd=/bin/sh /usr/bin/update_recent.sh /media/mmcblk0p1/Programs/_evince/bin/evince