From 7678de71d24252316015f35eaeafd16826bf0af5 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 12 Feb 2021 10:33:35 +0000 Subject: chown /dev/dri/ nodes if they exist --- config/GiveConsole | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config/GiveConsole') diff --git a/config/GiveConsole b/config/GiveConsole index 771f8a2..60e568b 100644 --- a/config/GiveConsole +++ b/config/GiveConsole @@ -1,6 +1,6 @@ #!/bin/sh # Assign ownership of the console to the invoking user -# $OpenBSD: GiveConsole,v 1.3 2019/05/12 11:53:06 jsg Exp $ +# $OpenBSD: GiveConsole,v 1.4 2021/02/12 10:33:34 jsg Exp $ # # By convention, both xconsole and xterm -C check that the # console is owned by the invoking user and is readable before attaching @@ -14,4 +14,10 @@ fi if [ -c /dev/drmR128 ]; then chown $USER /dev/drmR128 fi +if [ -c /dev/dri/card0 ]; then + chown $USER /dev/dri/card0 +fi +if [ -c /dev/dri/renderD128 ]; then + chown $USER /dev/dri/renderD128 +fi /usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER -- cgit v1.2.3