SHA256
1
0
forked from pool/gdm

Accepting request 917405 from home:xiaoguang_wang:branches:GNOME:Factory

- Add gdm-add-runtime-option-to-disable-starting-X-server-as-u.patch:
  Support to start X under root instead of regular user.
  (bnc#1188912 jsc#SLE-17880).
- Update X11-displaymanager-gdm file.

OBS-URL: https://build.opensuse.org/request/show/917405
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gdm?expand=0&rev=482
This commit is contained in:
2021-09-09 08:49:52 +00:00
committed by Git OBS Bridge
parent ed5b986b04
commit 518cdfaaf3
4 changed files with 212 additions and 0 deletions

View File

@@ -4,6 +4,16 @@ gdm_vars() {
RELOADSIGNAL="-USR1"
DISPLAYMANAGER=/usr/sbin/gdm
PIDFILE=/run/gdm/gdm.pid
# let gdm run the Xserver as root if access to /dev/fb*
# is required (bsc#1075805)
# The GDM_DISABLE_USER_DISPLAY_SERVER variable is added by patch
# gdm-add-runtime-option-to-disable-starting-X-server-as-u.patch
if [ ! -c /dev/dri/card0 -a \
! -c /dev/nvidiactl ]; then
export GDM_DISABLE_USER_DISPLAY_SERVER=1
fi
return 0 ;;
*) return 1 ;;
esac