6.8 API for Finding Installation Directories
(require setup/dirs) | package: base |
In cross-platform build mode (see API for Cross-Platform Configuration), the functions provided by setup/dirs generally report target-system paths, instead of current-system paths. The exceptions are get-lib-search-dirs and find-dll-dir, which report current-system paths while get-cross-lib-search-dirs and find-cross-dll-dir report target-system paths.
procedure
(find-collects-dir) → (or/c path? #f)
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
procedure
The main-collections search path can be configured via 'collects-search-dirs in "config.rktd" (see Installation Configuration and Search Paths).
procedure
(find-config-dir) → (or/c path? #f)
procedure
(find-links-file) → (or/c path? #f)
See also 'links-file in Installation Configuration and Search Paths.
procedure
(find-user-links-file [vers]) → path?
vers : string? = (get-installation-name)
The user-specific path depends on at least (find-system-path 'addon-dir) and vers.
procedure
See also 'links-search-files in Installation Configuration and Search Paths.
procedure
(find-pkgs-dir) → (or/c path? #f)
See also 'pkgs-dir in Installation Configuration and Search Paths.
procedure
(find-user-pkgs-dir [vers]) → path?
vers : string? = (get-installation-name)
The user-specific path depends on at least (find-system-path 'addon-dir) and vers.
procedure
(get-pkgs-search-dirs) → (listof path?)
See also 'pkgs-search-dirs in Installation Configuration and Search Paths.
procedure
(find-doc-dir) → (or/c path? #f)
See also 'doc-dir in Installation Configuration and Search Paths.
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
(get-doc-search-dirs) → (listof path?)
See also 'doc-search-dirs in Installation Configuration and Search Paths.
procedure
Added in version 8.1.0.6 of package base.
procedure
(find-lib-dir) → (or/c path? #f)
See also 'lib-dir in Installation Configuration and Search Paths.
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
(get-lib-search-dirs) → (listof path?)
Unless it is configured otherwise, and except in cross-platform
build mode, the result includes any non-#f result of
(find-lib-dir) and (find-user-lib-dir)—
In cross-platform build mode (see API for Cross-Platform Configuration), get-lib-search-dirs reports a result suitable for the current system, instead of the target system. See also get-cross-lib-search-dirs.
See also 'lib-search-dirs in Installation Configuration and Search Paths.
Changed in version 6.1.1.4 of package base: Dropped (find-dll-dir)
from the set of paths to
explicitly include in the
default.
Changed in version 6.9.0.1: Changed behavior in cross-platform build mode.
procedure
Added in version 6.9.0.1 of package base.
procedure
Added in version 8.1.0.6 of package base.
procedure
(find-dll-dir) → (or/c path? #f)
In cross-platform build mode (see API for Cross-Platform Configuration), find-dll-dir reports a result suitable for the current system, instead of the target system. See also find-cross-dll-dir.
Changed in version 6.9.0.1 of package base: Changed behavior in cross-platform build mode.
procedure
(find-cross-dll-dir) → (or/c path? #f)
Added in version 6.9.0.1 of package base.
procedure
(find-share-dir) → (or/c path? #f)
See also 'share-dir in Installation Configuration and Search Paths.
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
(get-share-search-dirs) → (listof path?)
Unless it is configured otherwise, the result includes any
non-#f result of (find-share-dir) and
(find-user-share-dir)—
See also 'share-search-dirs in Installation Configuration and Search Paths.
Added in version 8.1.0.6 of package base.
procedure
Added in version 8.1.0.6 of package base.
procedure
(find-include-dir) → (or/c path? #f)
See also 'include-dir in Installation Configuration and Search Paths.
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
See also 'include-search-dirs in Installation Configuration and Search Paths.
procedure
(find-console-bin-dir) → (or/c path? #f)
See also 'bin-dir in Installation Configuration and Search Paths.
procedure
(find-gui-bin-dir) → (or/c path? #f)
See also 'gui-bin-dir in Installation Configuration and Search Paths.
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
See also 'bin-search-dirs in Installation Configuration and Search Paths.
Added in version 8.1.0.6 of package base.
procedure
Added in version 8.1.0.6 of package base.
procedure
See also 'gui-bin-search-dirs in Installation Configuration and Search Paths.
Added in version 8.1.0.6 of package base.
procedure
Added in version 8.1.0.6 of package base.
procedure
(find-apps-dir) → (or/c path? #f)
See also 'apps-dir in Installation Configuration and Search Paths.
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
(find-man-dir) → (or/c path? #f)
procedure
The user-specific path depends on at least (find-system-path 'addon-dir) and (get-installation-name).
procedure
(get-man-search-dirs) → (listof path?)
See also 'man-search-dirs in Installation Configuration and Search Paths.
Added in version 8.1.0.6 of package base.
procedure
Added in version 8.1.0.6 of package base.
procedure
See also 'doc-search-url in Installation Configuration and Search Paths.
procedure
(get-doc-open-url) → (or/c string? #f)
See also 'doc-open-url in Installation Configuration and Search Paths.
Added in version 6.0.1.6 of package base.
procedure
procedure
(get-build-stamp) → (or/c #f string?)
procedure
procedure
(find-addon-tethered-console-bin-dir) → (or/c #f path?)
procedure
(find-addon-tethered-gui-bin-dir) → (or/c #f path?)
procedure
(find-addon-tethered-apps-dir) → (or/c #f path?)
Unlike other directories, which are configured via "config.rktd" in the (find-config-dir) directory (see Installation Configuration and Search Paths), these paths are configured via 'addon-tethered-console-bin-dir, 'addon-tethered-gui-bin-dir, and 'addon-tethered-apps-dir entries in "config.rktd" in (build-path (find-system-path 'addon-dir) "etc"). If no configuration is present, the result from the corresponding function, find-addon-tethered-console-bin-dir, find-addon-tethered-gui-bin-dir, or find-addon-tethered-apps-dir, is #f instead of a path.
See Tethered Installations for more information.
Added in version 6.5.0.2 of package base.
Changed in version 8.3.0.11: Added find-addon-tethered-apps-dir.
procedure
procedure
(find-config-tethered-gui-bin-dir) → (or/c #f path?)
procedure
(find-config-tethered-apps-dir) → (or/c #f path?)
See Tethered Installations for more information.
Added in version 6.5.0.2 of package base.
Changed in version 8.3.0.11: Added find-addon-tethered-apps-dir.