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

Re: [i3]Not able to get the reboot/suspend script work.



On Ma, 01 apr 14, 20:37:40, Brian wrote:
> 
> $HOME/.bashrc is executed when you log into X. Then its contents are
> sourced once agiain in your .xsessionrc. A double invocation seems a
> trifle inelegant.
 
Could you please provide a reference for the double invocation? As far 
as I remember this is not the case with most DMs (and is quite easy to 
test).

> > # set PATH so it includes user's private bin if it exists
> > if [ -d "$HOME/bin" ] ; then
> >     PATH="$HOME/bin:$PATH"
> > fi
> > 
> > 
> > PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
> 
> It's possible you may want different paths on the console and in X.

And it's also possible one might not ;)

> It's also possible that portions of your customised .profile relate
> only to things relevant to the console and which are not needed or
> wanted in X.

Which would that be?

> > And then I used ~/.xsesionrc to source ~/.profile. Here are the contents of
> > .xsessionrc:
> > 
> > #! /bin/sh
> > 
> > if [ -f "$HOME/.profile" ]; then
> >     . "$HOME/.profile"
> > fi
> 
> Four lines. Compare with the single line
> 
>   export PATH=$HOME/bin:$PATH
> 
> in ~/.xsessionrc. The configuration is aimed exactly at the target. It
> gives you what you want without having to reuse an existing file which
> has a different purpose.
 
Which purpose is that?

> And, if we read /etc/X11/Xsession.d/40x11-common_xsessionrc we see
> 
>   #Source user defined xsessionrc (locales and other environment variables)
> 
> Is your entry a locale or an environment variable?

I didn't know it was forbidden to use that file for anything else :)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: