Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: imaad on August 13, 2014, 01:33:36 PM

Title: Auto start a graphic application after boot
Post by: imaad on August 13, 2014, 01:33:36 PM
Hi,

I try to start a graphic application after boot (in fact after the desktop boot-up is done).
I put the path of the application in bootlocal.sh but nothing happen.
I think, maybe, I must put the path to start the application somewhere after the xsession was started, but I don't know where.

If you have any idea why I can start a graphic application after boot-up I appreciate !

Thank,
Title: Re: Auto start a graphic application after boot
Post by: Rich on August 13, 2014, 01:38:12 PM
Hi imaad
Create a file containing the start up command for your application and save it in the  .X.d  directory (in your home directory).
Title: Re: Auto start a graphic application after boot
Post by: imaad on August 13, 2014, 02:28:17 PM
Hi Rich,

Than you, I really appreciate your help.
Title: Re: Auto start a graphic application after boot
Post by: imaad on August 14, 2014, 04:27:52 AM
For info

I can start the graphic application correctly if I put in the start script on .X.d/ a delay of 5s. If I try to start the application without any delay, the application don't start. (For info if I exit to prompt and restart x session the application open correctly.) This is not relay a problem but I prefer that the applications start immediately after the desktop session was loaded.
It's there a reason for this chose ?

It's there a possibility to see the text output of an application that run in background (without restarting the application in console) or to see why the application not started ?
Title: Re: Auto start a graphic application after boot
Post by: imaad on August 14, 2014, 08:23:59 AM
I found where was the problem. In fact for my graphic application a have added some libraries and I have used the ldconfig on boolocal.sh to update the library path. I have putted the ldconfig at the end of the file. (THIS IS NOT GOOD)
The explication it is that the X application try to start but if the librarys was not update yet the application can't start. This is the reason for the delay which I must add before that the application start.

I resolve that by putting the ldconfig on top of the file. Now the application start imediatly after the X session was loaded.