def make_directory_entry(d):
assert d['<STR_LIT:path>'].endswith('<STR_LIT>')<EOL>d.setdefault('<STR_LIT>', '<STR_LIT>')<EOL>d.setdefault('<STR_LIT>', '<STR_LIT>')<EOL>fo = open(d['<STR_LIT:path>'], "<STR_LIT:w>")<EOL>fo.write(
Create a directory entry that conforms to the format of the Desktop Entry
Specification by freedesktop.org.  See:
        http://freedesktop.org/Standards/desktop-entry-spec
These should work for both KDE and Gnome2

An entry is a .directory file that includes the display name, icon, etc.
It will be placed in the location specified within the passed dict.  The
filename can be explicitly specified, but if not provided, will default to
an escaped version of the name.