On Wed, 7 Oct 2009, Arie Rechavel wrote:
> Thank you John
>
> I tried the following:
> x::once:/usr/bin/startx
> /home/eclipse/libx-gtk-examples/display/display
>
> The program display works, however a few icons were missing, but
> the touch screen did not resonds to any buttons I have on the screen.
> It seems like X11 did not fully started.
One of the problems of using init to start up your application, is that
there's no guarantee everything lese in the startup sequence is complete.
This can mean that the environment your app. expects might not be complete.
A safer way is to edit, or add to, the start up scripts that do the normal
startup procedure for your setup. If it's a debian image, then it's usually
a sysV type startup procedure[1], and you can add a script to start up your
application in /etc/init.d/ and make a link from the relevant /etc/rcN.d
directory depending on what run-level your system starts up in.
All this is pretty standard unix/linux, and is not at all specific to
the TS boards.
[1]
http://nico.schotteli.us/papers/linux/howto/minit-howto/minit-howto-v0.2.2/node35.html
> > ar
>
> -----Original Message-----
> From: On Behalf
> Of John Gray
> Sent: Wednesday, October 07, 2009 12:28 PM
> To:
> Subject: Re: [ts-7000] Auto Run
>
>
> On 06/10/09 23:22:47, njar09 wrote:
>> I would like to get some help on the following:
>>
>> I have a program called display that is using gtk (graphics)
>>
>> to auto login, I modified the file /etc/inittab as follows:
>> #1:2345:respawn:/sbin/getty 38400 tty1
>> 1:2345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1
>>
>> To autostart x windows I added at the bottom:
>> x::wait:/usr/bin/startx
>>
>> Now I would like to auto start my program display.
>> I added at the bottom:
>> ds::wait:/home/eclipse/libx-gtk-examples/display/display
>>
> I think that you can just specify the client program on the end of the
> startx command line normally, so you could try:
>
> x::wait:/usr/bin/startx /home/eclipse/libx-gtk-examples/display/display
>
> (assuming that this way of starting X works OK). I haven't tried this
> on a TS platform, it's just general X procedure. You can alternatively
> list one or more applications in .xintrc in the user's home directory
> if you use startx.
>
> Regards
>
> John
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|