[gdm] data: allow user to connect to his own displays automatically
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] data: allow user to connect to his own displays automatically
- Date: Wed, 19 Oct 2011 01:43:29 +0000 (UTC)
commit 273d92cd0d030434179c882cb34fd806195f236e
Author: Ray Strode <rstrode redhat com>
Date: Tue Oct 18 21:38:11 2011 -0400
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
data/Xsession.in | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/data/Xsession.in b/data/Xsession.in
index b2d98f2..118518c 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]