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

2014-01-08 Thread Slavko
Hi,

Dňa Wed, 8 Jan 2014 16:41:11 +0100 Vincent Lefevre 
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


signature.asc
Description: PGP signature


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

2014-01-08 Thread spp mg
Sorry, I retest my system. I think lighdm did run .xsession   .
but I don't understand why it can't source profile?

I write this in my .xsessionrc

if ! [ "$SPPMG_PROFILE" == "y" ] ; then
export SPPMG_TEST="y"
source ~/.profile
fi
expert SPPMG_RUN="xsessionrc"

the SPPMG_PROFILE set in .profile , so if sourced .profile ,
"$SPPMG_PROFILE" == "y"

In kdm , I get  SPPMG_PROFILE ,  SPPMG_RUN and setting in ~/.profile

in lightdm , I get SPPMG_TEST , SPPMG_RUN, but didn't source ~/.profile.

Look like kdm will run .profile first, and lightdm will not , but I don't
understand  why I can't get effect in "source ~/.profile " . Maybe because
"bash variable scope" .

So maybe it's not bug, just my mistake.  :)

Thinks your help.



2014/1/8 Slavko 

> Ahoj,
>
> Dňa Wed, 8 Jan 2014 20:22:53 +0800 spp mg  napísal:
>
> > Hi all.
> > I found a "problem" with lightdm , It will not run
> > ~/.profile
> > ~/.xprofile
> > ~/.xinitrc
> > ~/.xsession.
> > but kdm will run these script in same system . (even if ~/.proflie
> > only)
> >
> > Anyone get same result ? Is it a bug ?
>
> Is it somewhere standardized? If yes, then be free to fill bugreport.
> If not, then different behavior is not a bug.
>
> Be me knowledge the:
>
> + ~/.xsession is for Xsession customization (man xsession)
> + ~/.profile is for console logins (i am not sure now if local only or
>   remote too)
> + ~/.xinitrc is for xinit (man xinit)
> + purpose of the ~/.xprofile is unknown for me, it is not
>   sourced/executed in my system
>
> The LightDM sources the ~/.xsessionrc file (for me).
>
> regards
>
> --
> Slavko
> http://slavino.sk
>


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

2014-01-08 Thread Vincent Lefevre
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

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140108154111.gc15...@xvii.vinc17.org



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

2014-01-08 Thread Slavko
Ahoj,

Dňa Wed, 8 Jan 2014 20:22:53 +0800 spp mg  napísal:

> Hi all.
> I found a "problem" with lightdm , It will not run
> ~/.profile
> ~/.xprofile
> ~/.xinitrc
> ~/.xsession.
> but kdm will run these script in same system . (even if ~/.proflie
> only)
> 
> Anyone get same result ? Is it a bug ?

Is it somewhere standardized? If yes, then be free to fill bugreport.
If not, then different behavior is not a bug.

Be me knowledge the:

+ ~/.xsession is for Xsession customization (man xsession)
+ ~/.profile is for console logins (i am not sure now if local only or
  remote too)
+ ~/.xinitrc is for xinit (man xinit)
+ purpose of the ~/.xprofile is unknown for me, it is not
  sourced/executed in my system

The LightDM sources the ~/.xsessionrc file (for me). 

regards

-- 
Slavko
http://slavino.sk


signature.asc
Description: PGP signature


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

2014-01-08 Thread spp mg
Hi all.
I found a "problem" with lightdm , It will not run
~/.profile
~/.xprofile
~/.xinitrc
~/.xsession.
but kdm will run these script in same system . (even if ~/.proflie only)

Anyone get same result ? Is it a bug ?

I use the newest debian testing , and try to upgrade lightdm to sid,but
same problem.

Thinks all.