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
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
(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
(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
(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
(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
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?)
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 and 'addon-tethered-gui-bin-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 or find-addon-tethered-gui-bin-dir, is #f instead of a path.
The intent of this protocol is to support a kind of sandbox: an installation that is more specific than user-specific, and where copies of executables such as racket serve as entry points into the sandbox. Assuming that the addon directory is set to a directory other than the user’s default addon directory when raco setup creates the executable copies, then further package build and setup operations through the entry points will be confined to the sandbox and not affect a user’s default environment.
Added in version 6.5.0.2 of package base.
procedure
procedure
(find-config-tethered-gui-bin-dir) → (or/c #f path?)
Added in version 6.5.0.2 of package base.