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

New conffile in /etc/X11/Xsession.d



	Hi!

Currently the only possibility for the user to execute commands during X
startup is to use the file ~/.xsession (or equaly ~/.Xsession).  This
means that when the user chooses non-default session in the panel of
wdm, kdm or gdm, he or she is unable to influent the X startup process
accordint to his/her preferences.

I would like to propose a new conffile for the package xfree86-common --
/etc/X11/Xsession.d/96xfree86-common_xsessionrc:

# Begin file /etc/X11/Xsession.d/96xfree86-common_xsessionrc

if grep -qs ^allow-xsessionrc $optionfile; then
  if [ -x ~/.xsessionrc ]; then
    . ${HOME}/.xsessionrc $*
  fi
fi

# End file /etc/X11/Xsession.d/96xfree86-common_xsessionrc

Sometimes it is important to configure X before starting any X clients.
For example the keyboard mappings with three levels (like the Bulgarian
and the Canadian) should be loaded in X server early, or else Xlib will
not notice that the type of the keys is changed and the keyboard will
not work properly.  With the current configuration the users can not use
non-default sessions (because they do not execute ~/.xsession).

Another usage of the file ~/.xsessionrc would be to configure the $LANG
and similar variables and use the `xset' command to change the user
preferences for the X server.

Ofcource all these settings can be done in /etc, but there are
"multinational" systems where the users differ in their preferences. For
example now I develop modules for the package language-env (maintainer:
Tomohiro KUBOTA, kubota@debian.org) to support several languages and I
need a way to save the user preferences their dot-files without
disallowing them to use non-default sessions with wdm, gdm and kdm.

Anton Zinoviev <zinoviev@debian.org>





Reply to: