Fix detect driver from xorg.conf

develop
Mike Hiretsky 12 years ago
parent eceb006ad0
commit 5877f4b4f7

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

Loading…
Cancel
Save