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

Re: Variables de entorno bajo X



Alfonso García Rodríguez wrote:
> ...
>  P.D. ¿ Por qué usar "$HOME/.xinitrc" en vez de "~/.xsession" ?,
>  puedes encontrar la respuesta ejecutando el comando:
> 
>  less /usr/X11R6/bin/startx
> 
>  aunque no es necesario decírselo esplicitamente en este script, ya
>  que (man xinit) -->
> 
>        If  no  specific  client  program  is given on the command
>        line, xinit will look for a file in the user's home direc­
>        tory  called .xinitrc to run as a shell script to start up
>        client programs.  If no such file exists, xinit  will  use
>        the following as a default:
> 
>  Esto esta bien ya que si te curras un  "$HOME/.xinitrc" te servirá en
>  cualquier distribución sea o no nuestra querida Debian.
> 
>  En principio "~/.xsession" sólo es un convenio especifico de Debian,
>  lo ignoro.
> ...
Según la man-page de startx:

       Note that in the Debian GNU/Linux system, what many people
       traditionally put in the .xinitrc file should go in .xses­
       sion instead; the idea is that the  user's  X  environment
       should look and act the same whether startx, xdm, or xinit
       is used to start the X session.  All discussion of  .xini­
       trc  below  applies  equally  well  to .xsession.  Keep in
       mind, however, that X sessions started from xdm will  com­
       pletely disregard the .xinitrc file.

Traduciendo:
la idea en Debian es poner en .xsession la personalización
de X windows. De esa manera el "entorno" será el mismo ya
sea que se inicie con startx, [xgk]dm o xinit.
La función del .xinitrc es ejecutarse al arrancar el X server.
Cuando usas [xgk]dm para loguearte desde un entorno gráfico,
el X server ya arrancó, y el contenido de .xinitrc es
ignorado (al menos en Debian).

-- 
Saludos,
                                                     O__
Enzo.                                                ,>/
____________________________________________________()_\()____
Enzo A. Dari  |  Instituto Balseiro / Centro Atomico Bariloche
8400-S. C. de Bariloche, Argentina | darie@cab.cnea.gov.ar
Phone: 54-2944-445208, 54-2944-445100 Fax: 54-2944-445299
Web page: http://cabmec1.cnea.gov.ar/darie/darie.html



Reply to: