• [^] # Re: Question bête

    Posté par . En réponse au message auto exécuter une application graphique. Évalué à 1.

    Pas si bête, à mon sens; j'utilise matcbox: http://projects.o-hand.com/matchbox/
    Ce qu'il faut savoir: Je développe une application embarquée possedant un
    minimum de ressource matériel, l'IHM se resume à un écran tatctile de 5 pouces.
    Pour le developpement, je mets à profit le port série, via minicom et un ordinateur hôte cossu.
    Ce que j'ai fait: Je démarre avec un run level de 3, dans /etc/init.d , j'ai crée un script
    "someapp" exécutable contenant simplement "#!/bin/sh et startx" et un lien vers ce script
    dans /etc/rc3.d du genre S99someapp. Ensuite, j'ai modifié le fichier :
    /usr/X11R6/lib/X11/xinit/xinitrc , dont voici exactement les dernières lignes:
    *****************
    if [ -x $HOME/.xinitrc ]; then
    exec $HOME/.xinitrc
    fi
    # start some nice programs
    xsetroot -solid Aquamarine4
    xterm -ls -geometry 80x24+0+0 &
    /home/lotfi/myapp &
    if [ -x "$X_WINDOW_MANAGER" ] ; then
    exec $X_WINDOW_MANAGER
    elif [ -x /usr/bin/matchbox ] ; then
    exec /usr/bin/matchbox
    elif [ -x /usr/X11R6/bin/twm ] ; then
    exec /usr/X11R6/bin/twm
    else
    echo "No window manager found" 1>&2
    fi
    ***************, mon application est : /home/lotfi/myapp
    Ce que j'ai obtenu: "/usr/X11R6/bin/startx: line 68: xinit: command not found" !!?