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