/usr/games not in PATH (i3wm, BASH as default, using fish shell)

Tom H tomh0665 at gmail.com
Sat Sep 5 08:19:42 UTC 2015

On Fri, Sep 4, 2015 at 6:31 PM, Hörmetjan Yiltiz <hyiltiz at gmail.com> wrote:
> I have previously reinstalled my system using the live images, and kept my
> system updated with the US main FTP archive with `apt-get update` and
> `apt-get upgrade` and `apt-get dist-upgrade`. I installed KDE as my default
> desktop, installed i3wm which I am using it mainly now since it is quick and
> fast and using SSCM as my login manager. My default shell is /bin/bash.
> The problem is, when logged in using SSCM, the PATH is only /bin /usr/bin
> /usr/local/bin. Seemingly, my /etc/profile, ~/.profile has not been run by
> the login program. I hate to set the PATH in the .bashrc or fish.config
> (which I mainly use), but I am not sure where to look at: whether it is an
> i3wm specific issue (KDE also could not find /usr/games among others in the
> PATH), or SSCM issue. I tried logging in using TTY1 or su - command, and
> they include all the PATH as expected.

PATH is set via pam and "/etc/environment". Since you're getting it
for a non-DM login, all's well there (although su to root shouldn't
have any games path so I hope that you mean "su -l" to a non-root

IF YOU MEAN SDDM, read on... (A big if it seems to me!)

I don't use sddm but you should be able to set PATH via "~/.xsession"
or "~/.xsessionrc".

But if you need the above, you might want to file a bug report. sddm
must have a compile-time default or an sddm.conf-type file (or both)
to set a default PATH.

More information about the ubuntu-users mailing list