DesktopEntry.workingDirectory - multiple declarations

Function DesktopEntry.workingDirectory

The working directory to run the program in.

string workingDirectory() pure nothrow @safe const;

Returns

The unescaped value associated with "Path" key.

Function DesktopEntry.workingDirectory

Set Path value.

string workingDirectory (
  string wd
) @safe;

Throws

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

Example

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