Skip to content

Commit

Permalink
build-fhs-userenv: Propagate $XAUTHORITY
Browse files Browse the repository at this point in the history
The `DISPLAY` environment variable is propagated into chroots built with
`buildFHSUserEnv`, but currently the `XAUTHORITY` variable is not. When
the latter is set, its value is usually necessary in order to connect to
the X server identified by the former.

This matters for users running gdm3, for example, who have `XAUTHORITY`
set to something like `/run/user/1000/gdm/Xauthority` instead of the X
default of `~/.Xauthority`, which doesn't exist in that setup.

Fixes #21532.

(cherry picked from commit 09bae7c)
  • Loading branch information
jameysharp authored and Mic92 committed Jul 18, 2017
1 parent 359c8c9 commit 75f87bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/build-support/build-fhs-userenv/chroot-user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Propagate environment variables
envvars = [ 'TERM',
'DISPLAY',
'XAUTHORITY',
'HOME',
'XDG_RUNTIME_DIR',
'LANG',
Expand Down

0 comments on commit 75f87bc

Please sign in to comment.