Part of kiwi.desktopparser View In Hierarchy
A DesktopParser for GNOME/KDE .desktop files. The API is similar to GKeyFile from glib.
Example:
>>> parser = DesktopParser()
>>> parser.read('/usr/share/applications/gnome-terminal.desktop')
>>> parser.get_locale('Desktop Entry', 'Comment', 'pt')
| Method | __init__ | Undocumented |
| Method | optionxform | Undocumented |
| Method | set_list_separator | Sets the character which is used to separate |
| Method | set_locale | |
| Method | get_locale | |
| Method | get_string_list | |
| Method | set_string_list | |
| Method | get_integer_list | |
| Method | set_integer_list | |
| Method | get_boolean_list | |
| Method | set_boolean_list | |
| Method | set_string_list_locale | |
| Method | get_string_list_locale |
| Parameters | separator | the separator |
| Parameters | section | section name |
| option | an option | |
| locale | a locale | |
| value | value to set |
| Parameters | section | section name |
| option | an option | |
| locale | a locale |
| Parameters | section | section name |
| option | an option | |
| values | list of string values |
| Parameters | section | section name |
| option | an option | |
| values | list of integer values |
| Parameters | section | section name |
| option | an option | |
| values | list of boolean values |