View Single Post
Old 03-10-2013, 03:09 PM   #25
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
cd $(dirname "$0") <-- = change to the directory of the program you are trying to run

LD_LIBRARY_PATH=. <-- = add the current directory (SHOULD be the one above) to the LD_LIBRARY_PATH...

you could make that absolute I guess like...
LD_LIBRARY_PATH=/mnt/us/kindlevncviewer:$LD_LIBRARY_PATH

IIRC there is like a jpg lib and libvncclient? in there... not much anyways.. both variation can cover all use cases for this thing... It works on mine as Hawhill provisioned and so would this other (more standard) variation.

as it is an ephemeral value that will "just disappear" at the end of the script run it wont matter in this context... however as knc1 says as a general rule you would not have something as horrible as "." in your global LD_LIBRARY_PATH.

Your error, you reported, however was nothing to do with any of that... you said that
lipc-set-prop com.lab126.powerd preventScreenSaver 1

failed in some way...

Have you checked the output of just

lipc-set-prop com.lab126.powerd preventScreenSaver 1
via ssh... or myts.. or something (I use both of them on the DX )

perhaps the script got mangled in some way... ???

I really am at a bit of a loss as I run this thing all the time...

Hope that at least provides some background. if not a solution.

Last edited by twobob; 03-10-2013 at 03:41 PM.
twobob is offline   Reply With Quote