Fix get Driver from xorg.conf.

develop
Mike Hiretsky 13 years ago
parent 2e9f7ceee1
commit 98beca7700

@ -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