On this page:
xdgbasedir-data-home
xdgbasedir-config-home
xdgbasedir-cache-home
xdgbasedir-runtime-dir
xdgbasedir-data-dirs
xdgbasedir-config-dirs
5.3.4

1 Exported functions

 (require (planet lwoodman/xdgbasedir:1:=0))

In all the functions below subdir indicates the name of the application that the files relate to.

procedure

(xdgbasedir-data-home subdir)  path?

  subdir : path-string?
Returns the location of user-specific data files.

procedure

(xdgbasedir-config-home subdir)  path?

  subdir : path-string?
Returns the location of user-specific configuration files.

procedure

(xdgbasedir-cache-home subdir)  path?

  subdir : path-string?
Returns the location of user-specific non-essential data files.

procedure

(xdgbasedir-runtime-dir subdir)  (or/c path? boolean?)

  subdir : path-string?
Returns the location of user-specific runtime files. If no directory specified then returns #f.

procedure

(xdgbasedir-data-dirs subdir)  (listof path?)

  subdir : path-string?
Returns a list of directories, in order of preference, which should be searched for data files.

procedure

(xdgbasedir-config-dirs subdir)  (listof path?)

  subdir : path-string?
Returns a list of directories, in order of preference, which should be searched for configuration files.