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
/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
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.
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) -
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
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
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
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
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
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
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
*
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:
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
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
** 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
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
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
** 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
** 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:
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
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
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.
22 matches
Mail list logo