DesktopEntry.iconName - multiple declarations

Function DesktopEntry.iconName

Icon to display in file manager, menus, etc.

string iconName() pure nothrow @safe const;

Returns

The unescaped value associated with "Icon" key.

Note

This function returns Icon as it's defined in .desktop file. It does not provide any lookup of actual icon file on the system if the name if not an absolute path. To find the path to icon file refer to Icon Theme Specification or consider using icontheme library.

Function DesktopEntry.iconName

Set Icon value.

string iconName (
  string icon
) @safe;

Throws

IniLikeEntryException if icon is not abolute path nor base name.

Example

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