![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
extensions.cfg who can explain it
Hi!
I'd like to add a small "application" to my pocketbook. I want to be able to click on a file with my "own" extension and then this "application" should start. This seems to work but for it I had to add a line to extensions.cfg looking a bit like this: Code:
myext:@MYAPP_file:1:MYAPP.app:ICON_TXT @MYAPP_file seems to be a reference to some translatable text in system/language/CC.txt What's the purpose of the "1"? But what about "ICON_TXT"? I simply used it for now to have something. But what could I use here? Can I add my own Icon? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,041
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I believe that the "1" refers to the argument(s) passed to the program. It seems that "1" means that the application just gets the full path to the selected file as a single argument. Looking at the system version of extensions.cfg, picviewer.app has "2", and weblink has "5". Everyone else has "1". Perhaps the Library app passes more information with other numbers. You could try and see what else gets passed in to your app if you change the number.
ICON_TXT refers to what icon gets shown next to the files of that type in the Library app. Other possibilities are ICON_HTM, ICON_PDF, ICON_EPUB, ICON_ACSM, ICON_FB2, ICON_HTML, ICON_CHM, ICON_RTF, ICON_DOC, ICON_PRC, ICON_TCR, ICON_WWW, ICON_DJVU, ICOM_MP3, ICON_APP, ICON_JPG, ICON_PNG, ICON_BMP, ICON_TIFF. I have no idea where these are actually defined; they are just the ones I've seen in the system extensions.cfg file (in /ebrmain/config/extensions.cfg). |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
Thanks @rkomar. So it seems I'll stick with ICON_TXT.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where is the extensions.cfg file? | skydive | PocketBook | 4 | 06-19-2012 06:04 PM |
Tastenbelegung 902 - global.cfg? | Bernd_Schmitt | PocketBook | 6 | 04-17-2012 01:56 PM |
Modifying Extensions.cfg File | Mickey330 | PocketBook | 11 | 06-23-2010 02:19 PM |
Same book name, different extensions | Ununoctien | Bookeen | 3 | 12-13-2007 07:19 AM |
Firefox Extensions Best Of | TadW | Lounge | 9 | 12-17-2004 01:58 PM |