[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2012-03-04 Thread Robert Ancell
Yves-Alexis - can you confirm stock lightdm doesn't do the right thing on Debian? We're using LightDM on Ubuntu without this patch and I do have /usr/games in my path - it's coming from /etc/environment. As I said we're doing the same thing as GDM afaict. -- You received this bug notification

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2012-03-04 Thread Yves-Alexis Perez
/etc/environment is empty on Debian. I picked up the correct PATH from gdm so at least at one point it was the default used by gdm (2 I guess). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2012-03-02 Thread Yves-Alexis Perez
Here's an updated patch ** Patch added: updated patch for 1.1.4 https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+attachment/2800624/+files/01_set-default-path.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-08-09 Thread Robert Ancell
Colin, can you comment on what the default PATH should contain? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) -

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-27 Thread Yves-Alexis Perez
Well, it seems that it's not a good default, seeing the current bug. I already gave the current defaults in Debian. We currently ship this patch to tune the PATH depending on the user beeing root or not. ** Patch added: set default PATH

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-26 Thread Robert Ancell
It used to propogate the path, but it no longer does this. The default path is hard-coded to /usr/local/bin:/usr/bin:/bin. This is the same behaviour as GDM and I think this is a sane default. I'm not sure of a standard to refer to to set the default path to. -- You received this bug

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-25 Thread Robert Ancell
This is the default path, it is overriden by PAM who gets the path from /etc/environment -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-25 Thread Yves-Alexis Perez
In my case there's nothing in /etc/environment and PATH lacks /usr/games. I see in the code that there's an explicit propagation of PATH from the current environment to the session environment, but it doesn't seem to be enough. -- You received this bug notification because you are a member of

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-17 Thread Lionel Le Folgoc
child_process_set_env (CHILD_PROCESS (display-priv-user_session), PATH, /usr/local/bin:/usr/bin:/bin); The default path in the code is still missing /usr/games. It should probably be something like /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games. -- You received this bug notification

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-14 Thread Robert Ancell
Hi Yves-Alexis, I did a lot of work rearranging the code there. It now sets a default PATH. Please open a bug if this is not working. Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-05 Thread Launchpad Bug Tracker
This bug was fixed in the package lightdm - 0.4.2-0ubuntu1 --- lightdm (0.4.2-0ubuntu1) oneiric; urgency=low * New upstream release - Fixes (LP: #798277) * debian/lightdm.upstart: - Don't source /etc/environment or /etc/default/locale - this is done in PAM *

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-05 Thread Yves-Alexis Perez
PATH is not guaranteed to be defined in /etc/environment so it might make sense to default to a sensible value. Other DMs seem to do something like: PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games /etc/profile (which is about login shells) do:

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-05 Thread Yves-Alexis Perez
Something like that should work (but need testing). The default PATHs are currently #define'd in session.h, it might make sense to put them in the config file. ** Patch added: set default PATH if not found in pam_getenv

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-05 Thread Yves-Alexis Perez
Ok, previous path has no chance to work since env is not yet exported, so g_getenv() won't return anything. This one should do the work. ** Patch added: set default PATH if not found in environment

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-04 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-desktop/lightdm/ubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-03 Thread RapierTG
Im using gdm and am facing same issue. echo $PATH gives: /usr/local/bin:/usr/bin:/bin -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-03 Thread Robert Ancell
This is fixed in master - it was due to incorrect usage of PAM. It will be in the next release. ** Changed in: lightdm (Ubuntu Oneiric) Status: Triaged = In Progress ** Changed in: lightdm (Ubuntu Oneiric) Status: In Progress = Fix Committed -- You received this bug notification

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-01 Thread Jean-Baptiste Lallement
** Also affects: lightdm (Ubuntu Oneiric) Importance: High Status: Triaged ** Changed in: lightdm (Ubuntu Oneiric) Assignee: (unassigned) = Canonical Desktop Team (canonical-desktop-team) -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-07-01 Thread Martin Pitt
** Changed in: lightdm (Ubuntu Oneiric) Assignee: Canonical Desktop Team (canonical-desktop-team) = Robert Ancell (robert-ancell) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277 Title:

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-06-20 Thread Colin Watson
It's read by pam_env. /etc/pam.d/lightdm is using that in the same position as /etc/pam.d/gdm, but perhaps lightdm's PAM communication is different such that environment variables set at the auth stage are thrown away by the time it gets to starting a session; it might be productive to try moving

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-06-20 Thread Colin Watson
This probably also causes bug 799608. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or

[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved

2011-06-17 Thread Robert Ancell
I am still trying to work out how /etc/environment is supposed to be correctly sourced. I can't find out how GDM or even login is loading it. It's very confusing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.