DesktopEntry.iconName

Set Icon value.

  1. string iconName()
  2. string iconName(string icon)
    class DesktopEntry
    @safe
    string
    iconName
    (
    string icon
    )

Throws

IniLikeEntryException if icon is not abolute path nor base name.

Examples

auto df = new DesktopFile();
assertNotThrown(df.iconName = "base");
version(Posix) {
    assertNotThrown(df.iconName = "/absolute/path");
}
assertThrown(df.iconName = "not/absolute");
assertThrown(df.iconName = "./relative");

Meta