View Single Post
Old 06-28-2010, 01:49 PM   #80
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
"Please wait ..." start dialog lasts 30 seconds :(

Hi, Iņigo,

I was very happy with your FBReader v4 for software 1.0, but since I upgraded to 2.0 RC2 I had to roll back to FBReader v2. Everything works fine, except one little thing: on the app start there appears "Please Wait ..." popup and the DR800 indicator blinks green. This goes for 30 seconds (counted ) and then the popup is gone and the blinking stops. There was no such behavior in v4.

I've managed to do a hack where no dialog and no blinking happens. The trick is trivial: add & in the end of FBReader launch command (= start application in a separate thread). Do not know how proper this would be for the end users though ..

fbreader.sh:
Code:
export LD_LIBRARY_PATH=...
exec /.../FBReader &
I've investigated the case. This behavior is standard when you launch shell scripts and not applications from .desktop files.

See #3 in this thread:
"In the 1.0 release, the dialog is removed as soon as a full screen window is opened, or after 30 seconds. ..... I believe this is reworked in the 2.0 release so that the dialog is removed as soon as the application has started."

Apparently the system does not know when FBReader v2 is fully loaded and it does know when v4 is. Sooo, can you please say what are the code differences between v2 and v4? Can you post the complete codes ready for compilation? This would help a lot in learning the tips and tricks.

I'm working on porting another application and I have the same "30 seconds wait", so your input will be very valuable.

huge thanks!
Dima

Last edited by dima_tr; 06-28-2010 at 02:04 PM.
dima_tr is offline   Reply With Quote