diff options
Diffstat (limited to 'sci-misc/boinc/files/90-boincxss')
-rw-r--r-- | sci-misc/boinc/files/90-boincxss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sci-misc/boinc/files/90-boincxss b/sci-misc/boinc/files/90-boincxss new file mode 100644 index 0000000..0c0af5e --- /dev/null +++ b/sci-misc/boinc/files/90-boincxss @@ -0,0 +1,13 @@ +#!/bin/sh +# +# This file is sourced by Xsession(5), not executed. +BOINC_USER=boinc +# +# If xhost installed, use it to give access to the X server to any +# process from the same user on the local host. +# Unlike other uses of xhost, this is safe since the kernel can check +# the actual owner of the calling process. + +if type xhost >/dev/null 2>&1; then + id -u $BOINC_USER >/dev/null 2>&1 && xhost +SI:localuser:$BOINC_USER || : +fi |