3 Lightdm module for Augeas for which parses /etc/lightdm/*.conf files which
4 are standard INI file format.
6 Author: David Salmen <dsalmen@dsalmen.com>
9 This file is licenced under the LGPL v2+, like the rest of Augeas.
14 About: Configuration files
15 This lens applies to /etc/lightdm/*.conf. See <filter>.
18 The tests/test_lightdm.aug file contains unit tests.
24 (************************************************************************
27 * lightdm.conf only supports "# as commentary and "=" as separator
28 *************************************************************************)
29 let comment = IniFile.comment "#" "#"
30 let sep = IniFile.sep "=" "="
33 (************************************************************************
35 * lightdm.conf uses standard INI File entries
36 *************************************************************************)
37 let entry = IniFile.indented_entry IniFile.entry_re sep comment
40 (************************************************************************
42 * lightdm.conf uses standard INI File records
43 *************************************************************************)
44 let title = IniFile.indented_title IniFile.record_re
45 let record = IniFile.record title entry
48 (************************************************************************
50 * lightdm.conf uses standard INI File records
51 *************************************************************************)
52 let lns = IniFile.lns record comment
54 let filter = (incl "/etc/lightdm/*.conf")
56 let xfm = transform lns filter