how to launch an app. after booting automatically ?

david
Hi all,

I would like to launch an application right afer booting (at the moment I
need to login in and launch it manually).

When launching the application after booting (before login) with script 
(using the last script in 'init.d') it fail : the app is launched but the
touchscreen is not working (due to missing export as not logged in, or
uncorrect rights ?)

=> how can I avoid login (or log automatically) ?

best regards,
David

mindee
Hi,

ahoo, which embedded os do you use?

for Linux, you can edit "/etc/init.d/rcS" file
for WinCE, you can use "Autorun-Setting.exe" to set.

regards

mindee

david
I am using linux but as I described I tried in the rcS file but it fail
since app launches but touchscreen then doesn't work.

That's why I though of automatic login (since when logged in it works)


thanks

Jack
Hi David,

I also notice the same trouble as yours. When I want to automaticaly lunch
an application after the boot, the following message appears : 

> error while loading shared libraries: libts-0.0.so.0: cannot open shared
> object file: No such file or directory

Did you finally find a solution for this issue ?

Thanks

skip2816
exists libts-0.0.so.0 or is the real name like libts-0.0.so.0.0.1?
If so, make a sym link.

Jack
Hi Skip2816,

Thanks for your helpfull reply. 

Actually yes, the libts-0.0.so.0 exists ... but in /usr/local/lib/
directoy.

I copy the libts* files in /lib/ directory and now my application is
correctly launched. I agree that this is not a good manner to proceed. I
think my path is not correct ... how can I set it correctly ! Do you have
suggestion ?

In anycase thank you for putting me on the way !

Jack
reHi,

If I well understood, the /etc/profile is launched after  /etc/init.d/rcS.

In my case, the PATH setting figures in /etc/profile and I try to lunched
my application in /etc/init.d/rcS. It means that when I launch my
application the PATH is not already patched. So, I think this is the reason
why I had this trouble.

I have to better understand the boot process ... 

Thanks for your help

fundu
see /bin/qtopia

i just commented qpe and added my app there.

this file sets up all necessary stuff. touchscreen and the environment.

let me know if you run into any problem

Tom
You must write bash script witch exports all needed environment variables
and then launches Your app. Then add it to rcS file with '&' for example:

/home/myscript &

Remember to write full path. Or the other option is to export all variables
in QT application. It is important because if You have all variables in
/etc/profile and application is triggered by rcS it won't work - rcS is
read first then /etc/profile.

good luck
best regards
Tom