Skip to content
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

[User services] Some expected environment variables are filtered out #781

Open
NyaomiDEV opened this issue Mar 3, 2025 · 1 comment
Open
Assignees

Comments

@NyaomiDEV
Copy link

When starting user services, some environment variables that should be present and available to the services being started are filtered out by openrc. This causes observable breakage in some scenarios, such as opening Yakuake on a Plasma session.

The environment variables that are important and currently left out are HOME, USER and SHELL, however we should probably pass the entire user environment as-is to the services (since it comes from PAM env + login shell as far as I've understood - so it's identical to what an user would get upon login)

@navi-desu navi-desu self-assigned this Mar 3, 2025
@navi-desu
Copy link
Member

HOME is not being filtered, but USER and SHELL are

since it comes from PAM env + login shell as far as I've understood - so it's identical to what an user would get upon login

not quite, since calling rc-service foo start from a shell would import that shell's enviroment. and even at login, i'm unsure if random environment variables from the user's .profile should go through at all

noting system services do load /etc/profile.env though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants