DesktopEntry.type

Type of desktop entry.

  1. Type type()
    class DesktopEntry
    @nogc @safe
    type
    const nothrow pure
    (
    )
  2. Type type(Type t)

Return Value

Type: Type

Type of desktop entry.

Examples

1 string contents = "[Desktop Entry]\nType=Application";
2 auto desktopFile = new DesktopFile(iniLikeStringReader(contents));
3 assert(desktopFile.type == Type.Application);
4 
5 desktopFile.desktopEntry.setEscapedValue("Type", "Link");
6 assert(desktopFile.type == Type.Link);
7 
8 desktopFile.desktopEntry.setEscapedValue("Type", "Directory");
9 assert(desktopFile.type == Type.Directory);

Meta