Skip to content

Commit

Permalink
Correct doc references to APPDIR, to be APPDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Dec 31, 2024
1 parent c796089 commit 541546e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/configure/yaml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ variables, respectively.
If Stack is following the XDG Base Directory Specification, the location of
`config.yaml` (for user-specific options) is `<XDG_CONFIG_HOME>/stack`. If
the `XDG_CONFIG_HOME` environment variable does not exist, the default is
`~/.config/stack` on Unix-like operating systems and `%APPDIR%\stack` on
`~/.config/stack` on Unix-like operating systems and `%APPDATA%\stack` on
Windows.
8 changes: 4 additions & 4 deletions doc/topics/stack_root.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ command line.

=== "Windows"

The default Stack root is `$Env:APPDIR\stack`.
The default Stack root is `$Env:APPDATA\stack`.

If the `LOCALAPPDATA` environment variable exists, then the default location
of tools is `$Env:LOCALAPPDATA\Programs\stack`. Otherwise, it is the
Expand Down Expand Up @@ -61,7 +61,7 @@ command line.

=== "Windows (Command Prompt)"

The default Stack root is `%APPDIR%\stack`.
The default Stack root is `%APPDATA%\stack`.

If the `LOCALAPPDATA` environment variable exists, then the default location
of tools is `%LOCALAPPDATA%\Programs\stack`. Otherwise, it is the `programs`
Expand Down Expand Up @@ -91,11 +91,11 @@ command line.

The Stack root is `<XDG_DATA_HOME>/stack`. If the `XDG_DATA_HOME`
environment variable does not exist, the default is `~/.local/share/stack`
on Unix-like operating systems and `%APPDIR%\stack` on Windows.
on Unix-like operating systems and `%APPDATA%\stack` on Windows.

The location of `config.yaml` is `<XDG_CONFIG_HOME>/stack`. If the
`XDG_CONFIG_HOME` environment variable does not exist, the default is
`~/.config/stack` on Unix-like operating systems and `%APPDIR%\stack` on
`~/.config/stack` on Unix-like operating systems and `%APPDATA%\stack` on
Windows.

This approach treats:
Expand Down

0 comments on commit 541546e

Please sign in to comment.