Browse Source

Fix detect driver from xorg.conf

develop
Mike Hiretsky 11 years ago
parent
commit
5877f4b4f7
  1. 4
      pym/cl_fill.py

4
pym/cl_fill.py

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

Loading…
Cancel
Save