PATH

Bug #1653703 reported by tele1234567891
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Light Display Manager
New
Undecided
Unassigned

Bug Description

My $PATH is empty when I'm use Lightdm

I know this is not bug,
but if with GDM and Lxdm is set so with Lightdm also should.

Terminal in Lightdm working only when
- PATH is set hand
- or if kdelibs is installed (because it provide script with PATH)
/etc/profile.d/kde4env.sh

What is problem ?
- With GDM PATH exist
- With LXDM PATH exist

In Lxdm I see line
src/lxdm.c: env=g_environ_setenv(env, "PATH", "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin", TRUE); /* set proper default */

In LightDM I see
src/session-child.c: pam_putenv (pam_handle, "PATH=/usr/local/bin:/usr/bin:/bin");
src/seat.c: process_set_env (script, "PATH", "/usr/local/bin:/usr/bin:/bin");

I can not find other file, so maybe PATH is set from GDM and Lxdm ?

I use lightdm-1.19.5 on UPLOS 32 bit,
 I don't use PAM.

If you will have more time,
check $PATH in lightdm. ( should be or not ... )

Tags: path
Revision history for this message
tele1234567891 (swojskichlopak) wrote :

Sorry maybe is not empty, but I have missing /bin in $PATH with only Lightdm

===============================
bash: id: not found
bash: id: not found
bash: id: not found
bash: [: too much argumentów
bash: grep: not found
bash: uname: not found
bash: uname: not found
bash: grep: not found
bash: grep: not found
[gg@localhost ~]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/lib/qt5/bin:/home/gg/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/lib/qt5/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/lib/qt5/bin:/home/gg/bin:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/lib/qt5/bin
===============================

I checked setup package with
 grep -ri "/usr/local/bin"
and I have in csh.login if $PATH will be empty ?

========
if ( ! $?PATH ) then
   setenv PATH "/bin:/usr/bin:/usr/local/bin"
endif
========

I checked /etc/profile.d , /etc/profile again and don't have
and this is all.

Revision history for this message
tele1234567891 (swojskichlopak) wrote :

Funny is, becase "echo" is in /bin and working,
maybe somewhere is link.

If $PATH is not empty something added "/usr/local/bin" without /bin
and I can not find.
I can only add manually to
~/.bash_profile
or to /etc/profile

Revision history for this message
tele1234567891 (swojskichlopak) wrote :

For now I added to /etc/profile line

===================
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
===================

At the beginning

because:

1.
export PATH=/bin:/usr/bin
http://www.linuxfromscratch.org/blfs/view/7.6/postlfs/profile.html

2. Manjaro Linux use /etc/profile
( but without /bin , they have symlink to /usr/bin)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.