[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
/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 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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" https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+attachment/2235755/+files/01_set-default-path.patch -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
> 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 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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" https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+attachment/2192088/+files/01_set-default-path.patch ** Patch removed: "set default PATH if not found in pam_getenv" https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+attachment/2192018/+files/set-default-path.diff -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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" https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+attachment/2192018/+files/set-default-path.diff -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" for root PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" for normal users -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 * debian/Xsession: - Handle X resource directory being empty (LP: #800193) -- Robert AncellTue, 05 Jul 2011 15:22:12 +1000 ** Changed in: lightdm (Ubuntu Oneiric) Status: Fix Committed => Fix Released -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
** 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 sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
** 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: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
** 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 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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 pam_env from auth to session? -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved
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. https://bugs.launchpad.net/bugs/798277 Title: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10)
Hans Joachim and Charlie both use lightdm. $PATH is defined in /etc/environment which is sourced from the upstart job /etc/init/lightdm.conf related issues in lightdm: bug 794315 and bug 793366 Moving to lightdm. ** Package changed: xdg-utils (Ubuntu) => lightdm (Ubuntu) ** Changed in: lightdm (Ubuntu) Status: Confirmed => Triaged ** Summary changed: - $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) + $PATH does not contain /usr/games on Ubuntu Oneiric (11.10) - /etc/environment not sourced or environment not preserved -- 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 environment not preserved To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10)
Added: When you do run the binaries: $ cube Command 'cube' is available in '/usr/games/cube' The command could not be located because '/usr/games' is not included in the PATH environment variable. cube: command not found -- 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 798277] Re: $PATH does not contain /usr/games on Ubuntu Oneiric (11.10)
Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. I am seeing this same issue using Xubuntu Oneiric Ocelot, up-to-date as of 2011-06-16. It seems like /etc/environment is being ignored, but maybe what is in there is being over-ridden by something. A path change in /etc/environment is ignored, as are all locale settings such as LC_MESSAGES, LANGUAGE, and others. Thanks for taking the time to make Ubuntu better! ** Package changed: ubuntu => xdg-utils (Ubuntu) ** Changed in: xdg-utils (Ubuntu) Importance: Undecided => High ** Changed in: xdg-utils (Ubuntu) Status: New => Confirmed -- 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/798277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs