Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2009, 09:59 AM   #16
Shaggy
Wizard
Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.
 
Shaggy's Avatar
 
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?
Shaggy is offline   Reply With Quote
Old 01-06-2009, 10:24 AM   #17
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by Shaggy View Post
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?
O.K. That might be it...
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...
hansel is offline   Reply With Quote
Advert
Old 01-06-2009, 10:50 AM   #18
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by Shaggy View Post
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?
O.K. That might be it...

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:
  1. ctrl_start_up_behaviour()
  2. startup_idle_handler()
  3. ctrl_open_last_read_document()
  4. ctrl_listItem_clicked()
  5. ctrl_start_application()

Last edited by hansel; 01-06-2009 at 11:12 AM.
hansel is offline   Reply With Quote
Old 01-06-2009, 11:58 AM   #19
Shaggy
Wizard
Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.
 
Shaggy's Avatar
 
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.
Shaggy is offline   Reply With Quote
Old 01-06-2009, 03:40 PM   #20
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
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.
hansel is offline   Reply With Quote
Advert
Old 01-06-2009, 08:39 PM   #21
henryhu
Junior Member
henryhu has learned how to buy an e-book online
 
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.
henryhu is offline   Reply With Quote
Old 01-06-2009, 08:45 PM   #22
Mr. Goodbar
Wizard
Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.
 
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.
Mr. Goodbar is offline   Reply With Quote
Old 01-07-2009, 04:44 AM   #23
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
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);
        }
Maybe we can change it to also cover .sh files in the future?
-Thomas- is offline   Reply With Quote
Old 01-07-2009, 06:11 AM   #24
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by -Thomas- View Post
@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.
Indeed. But re-installing does no harm...
Quote:
Originally Posted by -Thomas- View Post
Maybe we can change it to also cover .sh files in the future?
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.
hansel is offline   Reply With Quote
Old 01-07-2009, 08:18 AM   #25
quek
Enthusiast
quek will become famous soon enoughquek will become famous soon enoughquek will become famous soon enoughquek will become famous soon enoughquek will become famous soon enoughquek will become famous soon enough
 
quek's Avatar
 
Posts: 29
Karma: 501
Join Date: Jan 2007
Device: Sony PRS500, Iliad
Great job hansel! Works perfectly!
quek is offline   Reply With Quote
Old 01-07-2009, 08:28 AM   #26
kapoira
Connoisseur
kapoira has a complete set of Star Wars action figures.kapoira has a complete set of Star Wars action figures.kapoira has a complete set of Star Wars action figures.
 
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.
kapoira is offline   Reply With Quote
Old 01-07-2009, 06:37 PM   #27
nekokami
fruminous edugeek
nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.
 
nekokami's Avatar
 
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....
nekokami is offline   Reply With Quote
Old 01-08-2009, 06:39 AM   #28
zerospinboson
"Assume a can opener..."
zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.
 
zerospinboson's Avatar
 
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?
zerospinboson is offline   Reply With Quote
Old 01-08-2009, 07:45 AM   #29
romanas
Enthusiast
romanas began at the beginning.
 
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
romanas is offline   Reply With Quote
Old 01-08-2009, 12:33 PM   #30
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by romanas View Post
@hansel: i modified firmware script and changed 2.12 into 2.12.1 It works fine now. Thank you very much, great job
Thanks for testing.
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
hansel is offline   Reply With Quote
Reply

Tags
contenlister, development, iliad, newlister


Forum Jump

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


All times are GMT -4. The time now is 10:33 PM.


MobileRead.com is a privately owned, operated and funded community.