-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use systemd-environmentd or pam to override xdg-paths #42
Comments
Oh I see you are already using, is there a reason that editing the service is still needed? |
I noticed that in some places you set vars manually or parse environment.d you can just call: Instead. |
Hi, thanks for your interest in this repo! :-) The PAM approach no longer works due to However, in that commit I also noticed that merely using environment.d does not work entirely as intended, because the systemd user instance itself does not adopt the variables. So while all user units adopt the new envvars, systemd itself reads its units from The way I see it, there is currently no way of solving the bootstrapping issue purely on a user level, hence my workaround solution of extending my user's On using the provided environment generators rather than parsing the variable files manually, that does seem more elegant indeed, thanks for the suggestion! :-) |
If you set the variables early enough than it picks them up.
It is a chicken and egg issue, in the end I also modified the user unit.
For sddm to pick my zsh config I also needed to set zdotdir earlier than environment.d is parsed.
If I would use bash as a login shell I would at least need .profile as they are to ignorant.
|
Improved environment generation in 5460772 (no more manual parsing). Not doing it with run-parts, because I cannot assume that to be universally available.
Unfortunately, the "early enough" is "before the user unit starts", so it's either extending the user unit itself or setting the variables at PAM level (e.g. Ideally, |
I used xargs -0, didn't use eval but that seems to work too.
Yeah that is what I couldn't avoid too. But anything outside of /etc is chicken and e.g. issue. |
Turned out my solution was a bit bugged (only found out later upon restarting my session), so had to adapt the variable exporting a little more with 1e25dd7, but it now works for me. Going to close this for now, thanks for your input! |
You can also use these override the xdg variables as the service or pam runs before the user session is active.
The text was updated successfully, but these errors were encountered: