source shell startup files

Task Info (Flyspray)
Opened By nl6720 (nl6720)
Task ID 78395
Type Feature Request
Project Arch Linux
Category Packages: Extra
Version None
OS All
Opened 2023-05-04 14:42:39 UTC
Status Assigned
Assignee Maxime Gauduin (Alucryd)

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:

Steps to reproduce: With zsh as the login shell, set an environment variable in ~/.zprofile and login via LightDM.

Attachments

lightdm.diff