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

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

Meta