[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [XWindow] Choix du gestionnaire de fenêtre



Eric SCHAEFFER a écrit :

Salut,

Eric BERTHOMIER wrote:

Je recherche quel est le fichier dans lequel est stocké le gestionnaire de fenêtre utilisé par défaut au démarrage de XWindow.

update-alternatives --config x-window-manager

(ou "update-alternatives --config x-session-manager")
suivant ce que tu veux changer.

Merci de l'indice, celà m'a permis de trouver ce que je cherchais en partie (du moins) :

lampion:/home/eric# update-alternatives --config x-window-manager

There is only 1 program which provides x-window-manager
(/usr/bin/wmaker). Nothing to configure.

lampion:/home/eric# ls -al /usr/bin/x-window-manager
lrwxrwxrwx 1 root root 34 2003-08-06 11:37 /usr/bin/x-window-manager -> /etc/alternatives/x-window-manager

lampion:/home/eric# ls -al /etc/alternatives/x-window-manager
lrwxrwxrwx 1 root root 15 2004-02-11 16:15 /etc/alternatives/x-window-manager -> /usr/bin/wmaker

De ce fait à l'aide d'un petit rgrep on trouve :
Xsession.d/50xfree86-common_determine-startup: elif [ -x /usr/bin/x-window-manager ]; then
Xsession.d/50xfree86-common_determine-startup:    STARTUP=x-window-manager

Qui est lu par le fichier /etc/X11/XSession :
# sanity check; is our session script directory present?
if [ ! -d "$SYSSESSIONDIR" ]; then
 errormsg "no \"$SYSSESSIONDIR\" directory found; aborting."
fi

# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
SESSIONFILES=$(run_parts $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
 for SESSIONFILE in $SESSIONFILES; do
   . $SESSIONFILE
 done
fi

Qui est lui même appelé par xinitrc

That's all folk

Merci




Reply to: