You are not logged in.
@ johnraff
HUSTON WE HAVE A PROBLEM!!

Glad i'm not the only one!
I'm using lightdm as login manager..
sed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
Sector11 wrote:@ johnraff
HUSTON WE HAVE A PROBLEM!!
![]()
![]()
Glad i'm not the only one!
I'm using lightdm as login manager..
Yup, me too; lightdm.
It's always nice when you have company. 
Last edited by Sector11 (2011-12-22 18:18:46)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
This is the explanation: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108
hehe
bootinfoscript - emacs primer - I ♥ #!
Offline
To see the value of the PATH variable when it executes your openbox autostart.sh, add this command to the autostart.sh
(echo $PATH > /tmp/path) &openbox --reconfigureand verify the content of /tmp/path
It works in a terminal because your .bashrc is sourced as part of the terminal startup.
bootinfoscript - emacs primer - I ♥ #!
Offline
On the new Point Release, I had these issues as well..
Also noticed things like ifconfig no longer works because /sbin is no longer in the path
Query ... When you do a
export PATH=$PATH:/sbinDoes this permanently add /sbin or just for this session?
VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
To see the value of the PATH variable when it executes your openbox autostart.sh, add this command to the autostart.sh
(echo $PATH > /tmp/path) &openbox --reconfigureand verify the content of /tmp/path
It works in a terminal because your .bashrc is sourced as part of the terminal startup.
cat /tmp/path:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Thanks for the explanation... it's a bug... what should i do now?
Add export PATH=$PATH:$HOME/bin to ~/.config/openbox/autostart?
Or would it be better to source $HOME/.profile from .xsession (before openbox-session is started) ?
Last edited by Tunafish (2011-12-22 18:56:53)
sed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
^ I add it to .bashrc
PATH=$PATH:$HOME/bin:/sbin
Eh VastOne, that's what it's all about here.... that doesn't work 
At least not for everything... just when you open a terminal...
Last edited by Tunafish (2011-12-22 18:58:13)
sed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
VastOne wrote:^ I add it to .bashrc
PATH=$PATH:$HOME/bin:/sbin
Eh VastOne, that's what it's all about here.... that doesn't work
Just noticed that Tuna
Sorry for my gaffe...
VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
Adding it to your .bashrc will mean it is picked up when you run a terminal which will start a shell for you, likewise doing export PATH=$PATH:~/bin will add it only for that instance of the shell. Best solution is to put the full pathname into rc.xml, so call /home/username/bin/kfc.sh rather than kfc.sh
Other entries in rc.xml are working because the executables (scripts/binaries) are in your default path (usr/bin, usr/local/bin etc).
I used to have env vars etc in my .bash_profile and aliases / functions etc in my .bashrc but this meant having to ensure my xterms were started as a login session, in my view its easier to just run them as normal shells and have everything in the .bashrc but like so many things in Linux there are multiple ways of doing it
Offline
Let me install lightdm and see how it works.
Will come back with an answer.
bootinfoscript - emacs primer - I ♥ #!
Offline
Where did you guys get lightdm from?
You upgraded to testing or unstable?
bootinfoscript - emacs primer - I ♥ #!
Offline
I think this is the easiest solution:
Create $HOME/.xsession
with this content
#!/bin/sh
if [ -e $HOME/.profile ]; then
. $HOME/.profile
fi
exec openbox-sessionThis works for me. YMMV.
bootinfoscript - emacs primer - I ♥ #!
Offline
I think this is the easiest solution:
Create $HOME/.xsession
with this content
#!/bin/sh if [ -e $HOME/.profile ]; then . $HOME/.profile fi exec openbox-sessionThis works for me. YMMV.
Thanks... works for me as well.
Tuna
sed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
Or you could
source ~/.bashrcin autostart.sh
Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1
Offline
This is the explanation: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108
hehe
Shame on you lightDM
grumble grumble GRRRRRRRRRRRRRRRRRRRRRRRRRR
OK they will fix it ... right!
OK they will fix it ... right!
OK they will fix it ... right!
OK they will fix it ... right! 
works OK here too! +2 (first post)
Last edited by Sector11 (2011-12-23 14:42:24)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Or you could
source ~/.bashrcin autostart.sh
The stuff in .bashrc is intended for working in terminals. I don't think you'd want/need it in an x-session. (Anyway, .bashrc just returns if it doesn't find a terminal.)
xaos52's does sound like the easiest solution, though I wonder what the Approved Debian Way of setting personal environment variables would now be?
Last edited by johnraff (2011-12-23 17:42:00)
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
I'd be patient with lightdm. They have plans and those plans will take time. If I understood the goals right, they try to provide a DM platform, instead of having 1000 different implementations with more or less minor differences. Ubuntu using lightdm might push it a little, I hope not in the wrong direction.
I'm so meta, even this acronym
Offline
...you could try creating ~/.xsessionrc , putting the PATH command in there and seeing if it gets executed? If it works, that might be the official substitute for .profile?
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
Debian are not going to fix this for lightdm (refer to the Debian bug link xaos52 posted) so unless the upstream lightdm dev's change it then you will have to manually ensure ~/.profile or ~/.bash_profile are sourced.
I would suggest the best way to do this is per a response in that bug report. Simply source ~/.profile using ~/.xsessionrc then you still only need to make changes to ~/.profile.
So in ~/.xsessionrc simply insert
. /etc/profile
. ${HOME}/.profile(or ${HOME}/.bash_profile if you are using that)
And be done with it.
Last edited by jelloir (2012-03-05 10:41:18)
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.