ulauncher.util.desktop package

Submodules

ulauncher.util.desktop.DesktopParser module

class ulauncher.util.desktop.DesktopParser.DesktopParser(filename)

Bases: object

DESKTOP_SECTION = '[Desktop Entry]'
get(name)

Raises KeyError if name is not found

get_boolean(name)

Returns True if value is “1”, “yes”, “true”, or “on”

Returns False if value is “0”, “no”, “false”, or “off”

String values are checked in a case-insensitive manner.

Any other value will cause it to raise ValueError.

read()

Read [Desktop Entry] section and save key=values pairs to __property_list

set(name, value)
set_filename(filename)
write()

Write properties to the file

ulauncher.util.desktop.notification module

ulauncher.util.desktop.reader module

Module contents