DesktopEntry.type

Sets "Type" field to type Note: Setting the Type.Unknown removes type field.

  1. Type type()
  2. Type type(Type t)
    class DesktopEntry
    @safe
    type

Examples

1 auto desktopFile = new DesktopFile();
2 desktopFile.type = Type.Application;
3 assert(desktopFile.desktopEntry.escapedValue("Type") == "Application");
4 desktopFile.type = Type.Link;
5 assert(desktopFile.desktopEntry.escapedValue("Type") == "Link");
6 desktopFile.type = Type.Directory;
7 assert(desktopFile.desktopEntry.escapedValue("Type") == "Directory");
8 
9 desktopFile.type = Type.Unknown;
10 assert(desktopFile.desktopEntry.escapedValue("Type").empty);

Meta