Browse Source

Fix get Driver from xorg.conf.

develop
Mike Hiretsky 11 years ago
parent
commit
98beca7700
  1. 2
      pym/cl_fill.py

2
pym/cl_fill.py

@ -440,7 +440,7 @@ class fillVars(varsShare):
matchSect = re.search(r'Section "Device".*?EndSection',
open('/etc/X11/xorg.conf').read(),re.S)
if matchSect:
resDriver = re.search(r'Driver\s*"([^"]+)"',
resDriver = re.search(r'^\S*Driver\s*"([^"]+)"',
matchSect.group(0),re.S)
if resDriver and resDriver.group(1) in list_avialable_drivers:
return resDriver.group(1)

Loading…
Cancel
Save