diff options
Diffstat (limited to 'cli/js/os.ts')
-rw-r--r-- | cli/js/os.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cli/js/os.ts b/cli/js/os.ts index 8e91be4af..c2d7a8f78 100644 --- a/cli/js/os.ts +++ b/cli/js/os.ts @@ -133,6 +133,7 @@ type DirKind = | "home" | "cache" | "config" + | "executable" | "data" | "data_local" | "audio" @@ -151,9 +152,9 @@ type DirKind = * Returns null if there is no applicable directory or if any other error * occurs. * - * Argument values: "home", "cache", "config", "data", "data_local", "audio", - * "desktop", "document", "download", "font", "picture", "public", "template", - * "video" + * Argument values: "home", "cache", "config", "executable", "data", + * "data_local", "audio", "desktop", "document", "download", "font", "picture", + * "public", "template", "video" * * "cache" * |Platform | Value | Example | @@ -169,6 +170,13 @@ type DirKind = * | macOS | `$HOME`/Library/Preferences | /Users/Alice/Library/Preferences | * | Windows | `{FOLDERID_RoamingAppData}` | C:\Users\Alice\AppData\Roaming | * + * "executable" + * |Platform | Value | Example | + * | ------- | --------------------------------------------------------------- | -----------------------| + * | Linux | `XDG_BIN_HOME` or `$XDG_DATA_HOME`/../bin or `$HOME`/.local/bin | /home/alice/.local/bin | + * | macOS | - | - | + * | Windows | - | - | + * * "data" * |Platform | Value | Example | * | ------- | ---------------------------------------- | ---------------------------------------- | |