From 320eacba135418ed594f4bf56d1b800450684e32 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Nov 2014 02:47:05 +0200 Subject: fix one 8 year long standing bug in xinit/startx --- x11-apps/xinit/files/00-xhost | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 x11-apps/xinit/files/00-xhost (limited to 'x11-apps/xinit/files/00-xhost') diff --git a/x11-apps/xinit/files/00-xhost b/x11-apps/xinit/files/00-xhost new file mode 100644 index 00000000..82cf1038 --- /dev/null +++ b/x11-apps/xinit/files/00-xhost @@ -0,0 +1,7 @@ +#!/bin/sh +# Allow all local connections from the current UID +# This fixes issues with hostname changes (usually by dhcp clients) +# see bug 287498 for more info + +[ -x /usr/bin/xhost ] && [ -x /usr/bin/id ] && + xhost +si:localuser:`id -un` > /dev/null 2>&1 -- cgit v1.2.3