Package portage :: Package util :: Module _desktop_entry
[hide private]

Module _desktop_entry

source code

Functions [hide private]
 
parse_desktop_entry(path)
Parse the given file with RawConfigParser and return the result.
source code
 
validate_desktop_entry(path) source code
Variables [hide private]
  _trivial_warnings = re.compile(r' looks redundant with value ')
  _ignored_errors = ('error: (will be fatal in the future): valu...
  _ShowIn_exemptions = ('contains an unregistered value "Pantheo...
  __package__ = 'portage.util'

Imports: io, re, subprocess, sys, ConfigParserError, RawConfigParser, portage, _encodings, _unicode_encode, _unicode_decode, writemsg


Function Details [hide private]

parse_desktop_entry(path)

source code 

Parse the given file with RawConfigParser and return the result. This may raise an IOError from io.open(), or a ParsingError from RawConfigParser.


Variables Details [hide private]

_ignored_errors

Value:
('error: (will be fatal in the future): value "TextEditor" in key "Cat\
egories" in group "Desktop Entry" requires another category to be pres\
ent among the following categories: Utility',
 'warning: key "Encoding" in group "Desktop Entry" is deprecated')

_ShowIn_exemptions

Value:
('contains an unregistered value "Pantheon"')