Bug 2257618 - Lightdm sets incorrect default PATH
Summary: Lightdm sets incorrect default PATH
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lightdm
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alternative GTK desktop environments
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-10 10:10 UTC by Sjoerd Mullender
Modified: 2024-01-26 00:42 UTC (History)
6 users (show)

Fixed In Version: lightdm-1.32.0-6.fc40 lightdm-1.32.0-6.fc39 lightdm-1.32.0-6.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-10 13:18:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sjoerd Mullender 2024-01-10 10:10:09 UTC
When logging in using lightdm, the initial value for the PATH environment variable is /usr/local/bin:/usr/bin:/bin.  It should, however, be /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin, i.e. /bin should be removed (it is a symlink to /usr/bin) and /usr/local/sbin and /usr/sbin should be added.

Reproducible: Always

Steps to Reproduce:
1.login on system using lightdm
2.echo $PATH
3.
Actual Results:  
/usr/local/bin:/usr/bin:/bin

Expected Results:  
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

Comment 1 Zbigniew Jędrzejewski-Szmek 2024-01-10 10:13:31 UTC
There is no need to touch the path at all. It is already set correctly by the environment, so the only thing that login manager needs to do is not touch it.

Comment 2 Fedora Update System 2024-01-10 13:15:16 UTC
FEDORA-2024-b11e291114 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-b11e291114

Comment 3 Fedora Update System 2024-01-10 13:18:27 UTC
FEDORA-2024-b11e291114 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2024-01-10 13:19:44 UTC
FEDORA-2024-8750e317a5 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8750e317a5

Comment 5 Fedora Update System 2024-01-11 01:40:27 UTC
FEDORA-2024-2c5dbb5c97 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2c5dbb5c97`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2c5dbb5c97

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-01-11 02:09:22 UTC
FEDORA-2024-8750e317a5 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8750e317a5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8750e317a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-01-26 00:38:05 UTC
FEDORA-2024-2c5dbb5c97 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2024-01-26 00:42:22 UTC
FEDORA-2024-8750e317a5 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.