Comment 0 for bug 1162836

Revision history for this message
Ayecee (ayecee) wrote : $PATH does not contain /usr/games - /etc/environment not sourced or environment not preserved

This is similar to #798277, however is a new problem. Please continue reading.

Problem appears in lightdm 1.2.3-0ubuntu2.
Downgrading to 1.2.3-0ubuntu1 resolves the problem.
Upgrading to 1.2.3-0ubuntu2 again causes the problem to reappear.

Steps to reproduce:
1. Login via lightdm
2. Open a terminal.
3. Run "echo $PATH"

Expected result: the path contains the folder /usr/games like on earlier releases of Ubuntu.
Actual result: PATH does not include /usr/games

In addition, this causes PATH to not be set correctly after sudo. For instance, /usr/sbin is not in path after sudo. Once again, downgrading lightdm resolves the problem.