FS#78395 - [lightdm] source shell startup files
Attached to Project:
Arch Linux
Opened by nl6720 (nl6720) - Thursday, 04 May 2023, 14:42 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:25 GMT
Opened by nl6720 (nl6720) - Thursday, 04 May 2023, 14:42 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:25 GMT
|
Details
Description:
LightDM does not source all of the login shell's startup files, only the sh/bash specific ~/.profile. This means that environment variables and etc. defined in e.g. ~/.zprofile are not set in the graphical session. Compare https://github.com/archlinux/svntogit-packages/blob/865bcec7eee243d2720b37a4037d4c30ca4be315/trunk/Xsession with https://github.com/sddm/sddm/blob/develop/data/scripts/Xsession . Please make the shipped Xsession file source the login shell's startup files. See the attached diff which uses a snippet from SDDM's Xsession file. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any lightdm 1:1.32.0-4 https://wiki.archlinux.org/title/LightDM#Environment_variables Steps to reproduce: With zsh as the login shell, set an environment variable in ~/.zprofile and login via LightDM. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:25 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/lightdm/issues/3
Saturday, 25 November 2023, 20:25 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/lightdm/issues/3
Comment by Toolybird (Toolybird) -
Friday, 05 May 2023, 01:26 GMT
I thought all sane people put their env vars into ~/.profile, then
arranged for their shell specific startup files (~/.bash_profile,
~/.zprofile, etc) to source ~/.profile? But maybe that's just me
:)