summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2011-10-18 21:38:11 -0400
committerRay Strode <rstrode@redhat.com>2011-10-18 21:43:19 -0400
commit273d92cd0d030434179c882cb34fd806195f236e (patch)
treee6f8d22e7a323fe43418930f2758f84f6d688c00
parentb6bc4e2416f60f9c38f8f54f11f0d1a5fc2d9024 (diff)
downloadgdm-273d92cd0d030434179c882cb34fd806195f236e.tar.gz
data: allow user to connect to his own displays automatically
Many distros do: xhost +si:localuser:`id -un` in there local start up scripts. This allows users connected via ssh (or a tty) to just set DISPLAY and gain access to any X servers that are running that they "own" without having to mess around with XAUTHORITY. This commit puts the equivalent change upstream. https://bugzilla.gnome.org/show_bug.cgi?id=651431
-rwxr-xr-xdata/Xsession.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/Xsession.in b/data/Xsession.in
index b2d98f2f..118518ca 100755
--- a/data/Xsession.in
+++ b/data/Xsession.in
@@ -153,6 +153,8 @@ if [ -n "$GDM_LANG" ]; then
export LANG
fi
+xhost +si:localuser:`id -un` || :
+
# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for i in /etc/X11/xinit/xinitrc.d/* ; do