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')
Function | __init__ | Undocumented |
Function | optionxform | Undocumented |
Function | set_list_separator | Sets the character which is used to separate |
Function | set_locale | Set locale. |
Function | get_locale | Get locale. |
Function | get_string_list | Get a list as string. |
Function | set_string_list | Set a list of string values. |
Function | get_integer_list | Get a list of integers as string. |
Function | set_integer_list | Set a list with integer values. |
Function | get_boolean_list | Get a boolean list. |
Function | set_boolean_list | Set an list wiht boolena values. |
Function | set_string_list_locale | Set string list with locale values. |
Function | get_string_list_locale | Get list locale as an string. |
Sets the character which is used to separate values in lists. Typically ';' or ',' are used as separators. The default list separator is ';'.
Set locale.
Get locale.
Get a list as string.
Set a list of string values.
Get a list of integers as string.
Set a list with integer values.
Get a boolean list.
Set an list wiht boolena values.
Set string list with locale values.
Get list locale as an string.