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

1 auto df = new DesktopFile();
2 assertNotThrown(df.iconName = "base");
3 version(Posix) {
4     assertNotThrown(df.iconName = "/absolute/path");
5 }
6 assertThrown(df.iconName = "not/absolute");
7 assertThrown(df.iconName = "./relative");

Meta