Fix composite value getting from xorg.conf.

develop
Mike Hiretsky 13 years ago
parent 98beca7700
commit 79764a7b10

@ -358,16 +358,17 @@ class varsShare:
lineCompositeTmp = ""
lineComposite = ""
for line in confLines:
line = line.strip()
if flagStartExtensions:
if 'EndSection' in line:
if line.startswith('EndSection'):
lineComposite = lineCompositeTmp
break
elif 'Section' in line:
elif line.startswith('Section'):
break
if 'Option' in line and '"Composite"' in line:
if line.startswith('Option') and '"Composite"' in line:
lineCompositeTmp = line
else:
if '"Extensions"' in line and 'Section' in line:
if '"Extensions"' in line and line.startswith('Section'):
flagStartExtensions = True
if lineComposite:
listOpt = filter(lambda x: x.strip(), lineComposite.split('"'))

Loading…
Cancel
Save