DesktopEntry.workingDirectory

Set Path value.

  1. string workingDirectory()
  2. string workingDirectory(string wd)
    class DesktopEntry
    @safe
    string
    workingDirectory
    (
    string wd
    )

Throws

IniLikeEntryException if wd is not valid path or wd is not abolute path.

Examples

auto df = new DesktopFile();
version(Posix) {
    assertNotThrown(df.workingDirectory = "/valid");
    assertThrown(df.workingDirectory = "not absolute");
}
assertThrown(df.workingDirectory = "/foo\0/bar");

Meta