diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/virtualgl/files/vgl.confd-r2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/virtualgl/files/vgl.confd-r2')
-rw-r--r-- | x11-misc/virtualgl/files/vgl.confd-r2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-misc/virtualgl/files/vgl.confd-r2 b/x11-misc/virtualgl/files/vgl.confd-r2 new file mode 100644 index 000000000000..a0cf7c5f2fde --- /dev/null +++ b/x11-misc/virtualgl/files/vgl.confd-r2 @@ -0,0 +1,27 @@ +# /etc/conf.d/vgl + +DISPLAY="${DISPLAY:-:0}" + +# Make it a function in case we have to repeat it in init script later +set_xauth() { + +# common case (works in almost all tested environments (except of lightdm)): +XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*' | cut -d ' ' -f 2)" + +# kdm and some others: +# XAUTHORITY="$(find /var/run/xauth/A${DISPLAY}-*|tail -n1)" + +# gdm: +# XAUTHORITY="/var/gdm/${DISPLAY}.Xauth" + +# slim: +# XAUTHORITY="/var/run/slim.auth" + +# lightdm: +# XAUTHORITY="/var/run/lightdm/root/${DISPLAY}" + +# lxdm: +# XAUTHORITY="/var/run/lxdm/lxdm-${DISPLAY}.auth" + +} +set_xauth |