This makes vulkan work as a normal user without having to change
ownership of the device by hand.

Index: GiveConsole
===================================================================
RCS file: /cvs/xenocara/app/xenodm/config/GiveConsole,v
retrieving revision 1.2
diff -u -p -r1.2 GiveConsole
--- GiveConsole 11 Jul 2018 19:20:40 -0000      1.2
+++ GiveConsole 12 May 2019 11:04:05 -0000
@@ -11,4 +11,7 @@ chown $USER /dev/console
 if [ -c /dev/drm0 ]; then
     chown $USER /dev/drm0
 fi
+if [ -c /dev/drmR128 ]; then
+    chown $USER /dev/drmR128
+fi
 /usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER
Index: TakeConsole
===================================================================
RCS file: /cvs/xenocara/app/xenodm/config/TakeConsole,v
retrieving revision 1.3
diff -u -p -r1.3 TakeConsole
--- TakeConsole 11 Jul 2018 19:20:40 -0000      1.3
+++ TakeConsole 12 May 2019 11:04:05 -0000
@@ -8,4 +8,7 @@ chmod 622 /dev/console
 if [ -c /dev/drm0 ]; then
     chown root /dev/drm0
 fi
+if [ -c /dev/drmR128 ]; then
+    chown root /dev/drmR128
+fi
 /usr/X11R6/bin/sessreg -d -l $DISPLAY -u none $USER

Reply via email to