On 23/11/2023 21:02, Greg Wooledge wrote:
Usually, creating ~/.xsessionrc (on Debian only, as it's specific to Debian) will suffice for this, as it gets read in by the X session before it spawns your window manager, and then the WM spawns everything else, all with your desired environment. (Again, assuming X, not Wayland.)
I would verify that changes are reflected in systemctl --user show-environmentoutput. XDG autostart instances, applications activated through D-Bus may be spawned by systemd user session, not X session & window manager.
Greg, do you have ideas how to relieve pain with environment configuration? E.g. to not override pam_environment by PATH hardcoded in /etc/profile, to negotiate what files display managers should read, etc.