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 8: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: 14
Joined: Sun Aug 14, 2016 7:57 pm
Has thanked: 4 times
Been thanked: 0 time

LightDM and PATH


Re: LightDM and PATH

Postby ASX » Tue May 16, 2017 8: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: 803
Joined: Wed May 06, 2015 3:46 pm
Location: ITALY
Has thanked: 37 times
Been thanked: 101 times

Re: LightDM and PATH

Postby ericbsd » Tue May 16, 2017 11: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: 1037
Joined: Mon Nov 19, 2012 11:54 pm
Has thanked: 21 times
Been thanked: 40 times

Re: LightDM and PATH  [SOLVED]

Postby PelleB » Wed May 17, 2017 12:59 am

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: 14
Joined: Sun Aug 14, 2016 7:57 pm
Has thanked: 4 times
Been thanked: 0 time


Return to General support

Who is online

Users browsing this forum: No registered users and 1 guest

cron