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

Re: lightdm (1.8.5-2 and -3) didn't run .profile .xinitrc ..... etc



Hi,

Dňa Wed, 8 Jan 2014 16:41:11 +0100 Vincent Lefevre <vincent@vinc17.net>
napísal:

> On 2014-01-08 13:55:36 +0100, Slavko wrote:
> > The LightDM sources the ~/.xsessionrc file (for me). 
> 
> for me too, but AFAIK, this is via Xsession. See:
> 
>   /usr/share/lightdm/lightdm.conf.d/01_debian.conf
> 

You are right of course. But, I am not sure if it is important,
because this config file is a part of lightdm package:

dpkg -S /usr/share/lightdm/lightdm.conf.d/01_debian.conf
lightdm: /usr/share/lightdm/lightdm.conf.d/01_debian.conf

Then, from user point of view, its parsing is provided by the lightdm.
Anyway, the name of this dot file points to the Xsession ;-)

More exactly, the path of ~/.xsessionrc is set in the /etc/X11/Xsession:

USERXSESSIONRC=$HOME/.xsessionrc

and used only from /etc/X11/Xsession.d/40x11-common_xsessionrc:

grep -H XSESSIONRC /etc/X11/Xsession.d/*
/etc/X11/Xsession.d/40x11-common_xsessionrc:if [ -r "$USERXSESSIONRC" ]; then
/etc/X11/Xsession.d/40x11-common_xsessionrc:  . "$USERXSESSIONRC"

Anyone can add own file in the /etc/X11/Xsession.d/ dir to parse
any file at start of Xsession. But i don't know if this is intended/good
idea. IMHO better is remain on the ~/.xsessionrc file and if particular
user want/need, he can add reading (sourcing) another file from here:

if [ -r $HOME/some_file ]; then
   . $HOME/some_file
fi

regards

-- 
Slavko
http://slavino.sk

Attachment: signature.asc
Description: PGP signature


Reply to: