LightDM and PATH  [SOLVED]

Need support for GhostBSD. Ask here if your question does not fit elsewhere.

LightDM and PATH

Postby PelleB » Tue May 16, 2017 4: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.
PelleB
 
Posts: 17
Joined: Sun Aug 14, 2016 3:57 pm
Has thanked: 5 times
Been thanked: 0 time

LightDM and PATH


Re: LightDM and PATH

Postby ASX » Tue May 16, 2017 4: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.
ASX
Developer
 
Posts: 968
Joined: Wed May 06, 2015 11:46 am
Has thanked: 57 times
Been thanked: 128 times

Re: LightDM and PATH

Postby ericbsd » Tue May 16, 2017 7: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
User avatar
ericbsd
Developer
 
Posts: 1077
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 29 times
Been thanked: 51 times

Re: LightDM and PATH  [SOLVED]

Postby PelleB » Tue May 16, 2017 8: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.
PelleB
 
Posts: 17
Joined: Sun Aug 14, 2016 3:57 pm
Has thanked: 5 times
Been thanked: 0 time


Return to General support

Who is online

Users browsing this forum: No registered users and 2 guests