01-06-2009, 09:59 AM | #16 |
Wizard
Posts: 4,293
Karma: 529619
Join Date: May 2007
Device: iRex iLiad, DR800SG
|
There's an option in the settings that tells the iLiad to open the most recent document after it boots. Is that what this is related to?
|
01-06-2009, 10:24 AM | #17 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
But If the last thing you do before rebooting is installing software? Will it install again? If so install scripts should probably remove themselves from the 'recent items' list... Back to the drawing board Last edited by hansel; 01-06-2009 at 10:36 AM. Reason: wrong reasoning... |
|
Advert | |
|
01-06-2009, 10:50 AM | #18 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
But If the last thing you do before rebooting is installing software? Will it install again after the reboot? If this is the case it is probably a potential problem in other install scripts as well... If so install scripts should probably remove themselves from the 'recent items' list... It's a good thing that there's no such thing as negative karma points Back to the drawing board EDIT: shaggy: this is indeed what happens. For those interested: It all happens in contenLister/src/control.c:
Last edited by hansel; 01-06-2009 at 11:12 AM. |
|
01-06-2009, 11:58 AM | #19 |
Wizard
Posts: 4,293
Karma: 529619
Join Date: May 2007
Device: iRex iLiad, DR800SG
|
It should be possible to add a check to ctrl_open_last_read_document() that makes sure the most recent document is not a script. I would have thought it did that already... guess not.
|
01-06-2009, 03:40 PM | #20 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
version 1.0.3
Update:
I have updated the install scripts, so that they do not appear in "Recent Documents'. This avoids the problem mentioned by henryhu and ne14st. Thanks for reporting it. shaggy: thanks for identifying the cause. The following has been added to the common part of the install scripts. Maybe it's useful in other scripts... Code:
#remove this script from 'Recent Documents'` RECENT=/var/recentdocuments/ HERE=`pwd` LINK=$RECENT`(ls -l $RECENT | grep $HERE | awk '{print $9}')` if [ ! $LINK = $RECENT ]; then rm $LINK fi Last edited by hansel; 01-06-2009 at 04:00 PM. |
Advert | |
|
01-06-2009, 08:39 PM | #21 |
Junior Member
Posts: 8
Karma: 82
Join Date: Jan 2009
Device: Iliad 2nd
|
It's much better, it can be the official release now.
hansel, You are master. |
01-06-2009, 08:45 PM | #22 |
Wizard
Posts: 1,005
Karma: 98078
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini 4
|
It we did the modification via the original method of copying the files over what needs to be done to correct the potential problem. I've been using the original process without any problems.
|
01-07-2009, 04:44 AM | #23 |
Addict
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
@Mr. Goodbar: I think you should be fine to replace the newLister-x.x.x directory on your memory card with the new version hansel attached to his first post. A re-installation of the newLister should not be necessary.
To all contentLister hackers out there: In hsStoreItem() in history.c there is a snippet that assures that png files are not added to the history: Code:
if ( item->fit == mdsFitFile && strcasecmp(item->szFileExt, "png") == 0 ) { // Notes template: do not add to recent documents CL_WARNPRINTF("Notes template: file [%s] not added to recent documents", item->szFilename); } else { hsAddRecent(item); } |
01-07-2009, 06:11 AM | #24 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
I think it would not work here: since the the scripts are in a directories with a manifest.xml, it's the directory that is recorded; not the script itself... Besides: if we block all shell scripts form 'recent documents', it will become impossible to start anything from there (I always start sshd from 'recent documents'). Last edited by hansel; 01-07-2009 at 06:15 AM. |
|
01-07-2009, 08:18 AM | #25 |
Enthusiast
Posts: 29
Karma: 501
Join Date: Jan 2007
Device: Sony PRS500, Iliad
|
Great job hansel! Works perfectly!
|
01-07-2009, 08:28 AM | #26 |
Connoisseur
Posts: 81
Karma: 292
Join Date: Nov 2006
Device: i62HD + T68
|
i think that the content listener try to execute another time the script because you have chosen that the content listener open the last page of your documents and not a view of a directory or the recent documents.
I'm thinking this is the problem that somebody have and not hansel. |
01-07-2009, 06:37 PM | #27 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
W00t! So nice to finally have this fixed.
Now if we could just get ability to sort by different criteria into ContentLister.... |
01-08-2009, 06:39 AM | #28 |
"Assume a can opener..."
Posts: 755
Karma: 1942109
Join Date: Mar 2008
Location: Local Cluster
Device: iLiad v2, DR1000
|
Request: Could you make the font used when displaying 12 items 1pt smaller, and add file size info (i don't care in what font size as long as i can make it out) to the right end of the 2nd line?
|
01-08-2009, 07:45 AM | #29 |
Enthusiast
Posts: 32
Karma: 38
Join Date: Sep 2008
Device: Irex iLiad ebook edition, DR1000s
|
@hansel: i modified firmware script and changed 2.12 into 2.12.1 It works fine now. Thank you very much, great job
|
01-08-2009, 12:33 PM | #30 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
newLister-1.0.4 accepts all versions that contain 2.12: Code:
old test: if [ "$Firmware_iLiad" = "$Firmware_Script" ]; then new test: if echo $Firmware_iLiad | grep $Firmware_Script - ; then |
|
Tags |
contenlister, development, iliad, newlister |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DX: Contrast has Been Improved | ny10522 | Amazon Kindle | 3 | 06-15-2009 02:46 AM |
Has E-ink improved? | Kilarney | Which one should I buy? | 4 | 03-14-2009 07:01 PM |
NewLister 1.0.1: Improved contenLister, more items on a page | hansel | iRex | 9 | 02-13-2009 05:24 AM |
txt2lrf - New and Improved | kovidgoyal | LRF | 42 | 02-10-2009 07:41 AM |
iLiad Wiki, Software documentation, contenLister | hansel | iRex Developer's Corner | 1 | 12-09-2008 06:34 PM |