Re: Variables de entorno bajo X
JM A M escribe:
> ATENCIÓN PREGUNTA:
> ¿Qué hago para que sólo me asigne la variable cuando rulo con un usu?
> ¿Dónde hay documentación sobre el archivo "~/.xsession"?
>
> Me temo que será problema de usar mal la sintaxis en el "~/.xsession".
>
Espero haber leído bien la pregunta.
Yo adquiero el perfil de cada sesión X de /etc/profile, añadiendo
if [ -f /etc/profile ]; then
. /etc/profile
fi
en mi $HOME/.xinitrc
Saludos.
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.
less /etc/X11/Xsession
man X (leelo despacio y con calma) -->
xdm (the X Display Manager)
If you want to always have X running on your dis
play, your site administrator can set your machine
up to use the X Display Manager xdm. This program
is typically started by the system at boot time
and takes care of keeping the server running and
getting users logged in. If you are running xdm,
you will see a window on the screen welcoming you
to the system and asking for your username and
password. Simply type them in as you would at a
normal terminal, pressing the Return key after
each. If you make a mistake, xdm will display an
error message and ask you to try again. After you
have successfully logged in, xdm will start up
your X environment. By default, if you have an
****** executable file named .xsession in your home ******
directory, xdm will treat it as a program (or
shell script) to run to start up your initial
clients (such as terminal emulators, clocks, a
window manager, user settings for things like the
background, the speed of the pointer, etc.). Your
site administrator can provide details.
Si haces login de forma gráfica te puede interesar más ".xsession" no
se (ni tengo tiempo de probarlo) si .xinitrc se hace caso desde xdm y
derivados.
--
agr@lab.inf.uc3m.es
agr1@arrakis.es
Reply to: