code: public static String getInitialDirectory() {
          String result;
  
          result = get("InitialDirectory", "%c");
          result = result.replaceAll("%t", System.getProperty("java.io.tmpdir"));
          result = result.replaceAll("%h", System.getProperty("user.home"));
          result = result.replaceAll("%c", System.getProperty("user.dir"));
          result = result.replaceAll("%%", System.getProperty("%"));
  
          return result;
      }
docs: Returns the initial directory for the file chooser used for opening
  datasets.
  <p/>
  The following placeholders are recognized:
  <pre>
  %t - the temp directory
  %h - the user's home directory
  %c - the current directory
  %% - gets replaced by a single percentage sign
  </pre>
  
  @return		the default directory