source shell startup files
| Task Info (Flyspray) | |
|--------------------------|----------------------------------------------------------------------------------|
| <small>Opened By</small> | <small>[nl6720 (nl6720)](https://bugs.archlinux.org/user/21972)</small> |
| <small>Task ID</small> | <small>[78395](https://bugs.archlinux.org/task/78395)</small> |
| <small>Type</small> | <small>Feature Request</small> |
| <small>Project</small> | <small>Arch Linux</small> |
| <small>Category</small> | <small>Packages: Extra</small> |
| <small>Version</small> | <small>None</small> |
| <small>OS</small> | <small>All</small> |
| <small>Opened</small> | <small>2023-05-04 14:42:39 UTC</small> |
| <small>Status</small> | <small>Assigned</small> |
| <small>Assignee</small> | <small>[Maxime Gauduin (Alucryd)](https://bugs.archlinux.org/user/14279)</small> |
### 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.
### Attachments
[lightdm.diff](https://gitlab.archlinux.org/archlinux/packaging/packages/lightdm/uploads/59a1443b777c2dd0666c23723012a397/lightdm.diff)
issue