Dans un but particulier, j'ai modifié/etc/X11/xinit/Xclients pour démarrer firefox au lieu de démarrer Desktop Environment.Qu'est-ce qui pourrait faire que "Xclients" soit exécuté deux fois lors du démarrage du système?
# Argh! Nothing good is installed. Fall back to twm
{
# gosh, neither fvwm95 nor fvwm2 is available;
# fall back to failsafe settings
[ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
# if [ -x /usr/bin/xclock ] ; then
# /usr/bin/xclock -geometry 100x100-5+5 &
# elif [ -x /usr/bin/xclock ] ; then
# /usr/bin/xclock -geometry 100x100-5+5 &
# fi
# if [ -x /usr/bin/xterm ] ; then
# /usr/bin/xterm -geometry 80x50-50+150 &
# fi
if [ -x /usr/bin/firefox ]; then
/usr/bin/firefox -chrome http://127.0.0.1/ -width 1280 -height 768
fi
# if [ -x /usr/bin/twm ] ; then
# exec /usr/bin/twm
# fi
Cela fonctionnait bien jusqu'à aujourd'hui, je l'ai testé sur un autre ordinateur. Firefox signale qu'il existe une autre instance de firefox qui cesse de répondre. Ainsi, firefox ne pouvait pas démarrer automatiquement comme je m'y attendais.
Je connecté l'ordinateur avec SSH et j'ai trouvé il y a 2 processus: Firefox
[[email protected] xinit]# ps -ef | grep firefox
root 4479 4371 0 17:34 ? 00:00:00 /bin/sh /usr/lib/firefox-3.0b5/run-mozilla.sh /usr/lib/firefox-3.0b5/firefox -chrome http://127.0.0.1/ -width 1280 -height 768
root 4600 4479 0 17:34 ? 00:00:01 /usr/lib/firefox-3.0b5/firefox -chrome http://127.0.0.1/ -width 1280 -height 768
root 4940 4906 0 17:35 ? 00:00:00 /bin/sh /usr/lib/firefox-3.0b5/run-mozilla.sh /usr/lib/firefox-3.0b5/firefox -chrome http://127.0.0.1/ -width 1280 -height 768
root 4963 4940 0 17:35 ? 00:00:00 /usr/lib/firefox-3.0b5/firefox -chrome http://127.0.0.1/ -width 1280 -height 768
root 5717 5345 0 17:51 pts/2 00:00:00 grep firefox
je suppose que, pour une raison quelconque, « Xclients » est exécutée deux fois. Mais je ne sais vraiment pas grand-chose sur XWindows, donc si quelqu'un ici pouvait me donner des indices, j'apprécierais!