baseIconDirs

The list of base directories where icon thems should be looked for as described in Icon Theme Specification.

This function is Freedesktop only. Note: This function does not provide any caching of its results. This function does not check if directories exist.

  1. string[] baseIconDirs()
    @safe nothrow
    static if(isFreedesktop)
    string[]
    baseIconDirs
    ()
  2. string[] baseIconDirs(Range dataPaths)

Examples

auto homeGuard = EnvGuard("HOME", "/home/user");
auto dataHomeGuard = EnvGuard("XDG_DATA_HOME", "/home/user/data");
auto dataDirsGuard = EnvGuard("XDG_DATA_DIRS", "/usr/local/data:/usr/data");

assert(baseIconDirs() == ["/home/user/.icons", "/home/user/data/icons", "/usr/local/data/icons", "/usr/data/icons", "/usr/share/pixmaps"]);

Meta