-
Notifications
You must be signed in to change notification settings - Fork 356
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
liveinst: bubble more user env variables through anaconda to the webui #5397
Conversation
In particular, we need XDG_CURRENT_DESKTOP, but this commit brings it all through, so firefox runs in an environment as close to getting run directly by the live user as possible.
Split out of #5058 to check the CI. |
readarray -t user_environment < <(pkexec --user "${INSTALLER_USER}" env XDG_RUNTIME_DIR="/run/user/${PKEXEC_UID}" systemctl --user show-environment) | ||
|
||
for variable in "${user_environment[@]}"; do | ||
export "$variable" |
Check warning
Code scanning / shellcheck
This does not export 'variable'. Remove $/${} for that, or use ${var?} to quiet. Warning
@@ -22,13 +22,18 @@ | |||
# unprivileged, restart running as root. | |||
if [ "$(id -u)" -ne 0 ]; then | |||
xhost +si:localuser:root | |||
unset XAUTHORITY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be sure, all these changes work also on non-WebUI Live media, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still need to test all, Web UI and others - moved the PR to Draft to clarify this is a work in progress.
It's more like fresh version of #5058 so that I can generate some images and test, as I can't do it locally.
This PR is stale because it has been open 60 days with no activity. |
This is not tested and I dont have time for this right now. |
In particular, we need XDG_CURRENT_DESKTOP, but this commit brings it all through, so firefox runs in an environment as close to getting run directly by the live user as possible.