I have a package to import the shell environment variables directly to Emacs.
@barocio For bash, I define my important env vars in .profile and source that from .bashrc at the top. This avoids having to worry about getting environment variables in programs not run from a shell since dash/sh is used for those and uses .profile. I've been doing this for years and still not sure why it's not standard procedure. It seems like the obvious solution so I am clearly missing something...
@barocio I don't start any apps from systemd, but I do see my profile-defined variables in an emacs I start from dmenu in i3wm. I guess hyprland is different, although it sounds broken or maybe misconfigured? There should be a way to get the user's profile environment to an app you are starting as that user if it doesn't do that by default.
Starting emacs from systemd just sounds like a bad idea to me 😬
@ambihelical l am aware that for many people systemd as a whole is a bad idea 😅