summaryrefslogtreecommitdiff
path: root/.b/etc/X11/xinit/xinitrc.d/00-xhost
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2022-09-06 10:53:34 +0300
committerSyndamia <kamen@syndamia.com>2022-09-06 10:53:34 +0300
commitabdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83 (patch)
treeba3e845eefb201676fcc87e964ab5035f3222585 /.b/etc/X11/xinit/xinitrc.d/00-xhost
parentdd6a62a3c881c0b2e71db5bb923c60a54d2b016d (diff)
downloaddotfiles-abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83.tar
dotfiles-abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83.tar.gz
dotfiles-abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83.zip
Added many configs to .b
Diffstat (limited to '.b/etc/X11/xinit/xinitrc.d/00-xhost')
-rwxr-xr-x.b/etc/X11/xinit/xinitrc.d/00-xhost7
1 files changed, 7 insertions, 0 deletions
diff --git a/.b/etc/X11/xinit/xinitrc.d/00-xhost b/.b/etc/X11/xinit/xinitrc.d/00-xhost
new file mode 100755
index 0000000..82cf103
--- /dev/null
+++ b/.b/etc/X11/xinit/xinitrc.d/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