load-fragment: add user and home specifier to user.conf#26675
Merged
bluca merged 1 commit intosystemd:mainfrom Mar 10, 2023
Merged
load-fragment: add user and home specifier to user.conf#26675bluca merged 1 commit intosystemd:mainfrom
bluca merged 1 commit intosystemd:mainfrom
Conversation
yuwata
requested changes
Mar 5, 2023
Contributor
Author
|
Realized the manpage would need updating too so I added these specifiers to the systemd-system.conf manpage. |
yuwata
requested changes
Mar 5, 2023
yuwata
approved these changes
Mar 5, 2023
Member
yuwata
left a comment
There was a problem hiding this comment.
Looks superficially good to me. But one minor point.
Let's wait for other reviewers.
joelpurra
reviewed
Mar 9, 2023
poettering
reviewed
Mar 9, 2023
poettering
reviewed
Mar 9, 2023
This enables the ManagerEnvironment= settings in the user's user.conf to reference some user data like $HOME for the purpose of setting environment variables derived from these values.
Contributor
Author
|
Thanks everyone! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This enables the ManagerEnvironment= settings in the user's user.conf to reference the user's home and username for the purpose of setting environment variables derived from these values.
Resubmitted from #26596 as a PR as requested.
I've tested that it works now, at least in the scenario described by the issue. I added
To my
~/.config/systemd/user.confand my user manager now searches~/.hostconfig/$HOST/systemd/user/for host specific unit files.