LightDM and PATH  [SOLVED]

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
PelleB
Posts: 17
Joined: Sun Aug 14, 2016 4:57 pm
Has thanked: 0
Been thanked: 0

LightDM and PATH

Post by PelleB » Tue May 16, 2017 5:17 pm

Hello,

I have tried LightDM in stead of Slim. It works nicely with one exception, most of the PATH is lost in X. I think this is a quite well known problem, but I could not find a solution by searching the net and experimenting a bit.

Using Slim I get

Code: Select all

echo $PATH
/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin
but with LightDM only the last two. In the console (logging in as the same user on tty2) I get the full version.

What is it that I do not know?

Per B.

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: LightDM and PATH

Post by ASX » Tue May 16, 2017 5:49 pm

yep, it depend on the shell you are using and therefore on the shell initialization files ~/.profile ~/.chshrc ... etc.
As far as I know /bin/sh works fine, some shell do have problem like yours.

ericbsd will add more info.

User avatar
ericbsd
Developer
Posts: 1194
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 7 times
Been thanked: 5 times

Re: LightDM and PATH

Post by ericbsd » Tue May 16, 2017 8:21 pm

PelleB
If you use fish add this to
/usr/local/etc/fish/config.fish
set -x PATH $PATH /sbin /usr/sbin /usr/local/sbin

PelleB
Posts: 17
Joined: Sun Aug 14, 2016 4:57 pm
Has thanked: 0
Been thanked: 0

Re: LightDM and PATH  [SOLVED]

Post by PelleB » Tue May 16, 2017 9:59 pm

That solved it! I could not have figured out that one myself. Fish was the default option at install, so I let it be installed in order to not complicate matters. maybe this was not the right idea...

Per B.

Post Reply