diff options
author | Pacho Ramos <pacho@gentoo.org> | 2015-09-19 10:48:29 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2015-09-19 10:48:29 +0200 |
commit | 945fef13fa4820de9ebafdf8c399d19f74418954 (patch) | |
tree | 1ebf96550ee5e25ab09a8943b03951e868dd3e1a /x11-misc/virtualgl/files | |
parent | app-misc/pax-utils: version bump to 1.1.3 (diff) | |
download | gentoo-945fef13fa4820de9ebafdf8c399d19f74418954.tar.gz gentoo-945fef13fa4820de9ebafdf8c399d19f74418954.tar.bz2 gentoo-945fef13fa4820de9ebafdf8c399d19f74418954.zip |
Fix handling of SDDM (#539340 by Rafal Lalik)
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'x11-misc/virtualgl/files')
-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 |