Skip to content

Commit

Permalink
chore(doc): use correct env var in TROUBLESHOOTING
Browse files Browse the repository at this point in the history
`%APPDATA%` points to `%UserProfile%/AppData/Roaming`, while
`%LOCALAPPDATA%` points to `%UserProfile%/AppData/Local`.
`%LOCALAPPDATA%` should be used when refering to firenvim script path

[Reference](https://superuser.com/a/632905)
  • Loading branch information
xudyang1 authored and glacambre committed Jan 20, 2024
1 parent 7e2f12b commit 471354b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ call firenvim#install(0)

## Make sure the firenvim script has been created

Running `call firenvim#install(0)` should have created a shell or batch script in `$XDG_DATA_HOME/firenvim` (on linux/osx, this usually is `$HOME/.local/share/firenvim`, on windows it's `%APPDATA%\firenvim`). Make sure that the script exists and that it is executable. Try running it in a shell, like this:
Running `call firenvim#install(0)` should have created a shell or batch script in `$XDG_DATA_HOME/firenvim` (on linux/osx, this usually is `$HOME/.local/share/firenvim`, on windows it's `%LOCALAPPDATA%\firenvim`). Make sure that the script exists and that it is executable. Try running it in a shell, like this:
```sh
echo 'abcde{}' | ${XDG_DATA_HOME:-${HOME}/.local/share}/firenvim/firenvim
```
Expand All @@ -37,7 +37,7 @@ Running `call firenvim#install(0)` should also have created a file named `firenv
* For Firefox: `$HOME/Library/Application Support/Mozilla/NativeMessagingHosts`
* For Chrome: `$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts`
* For Chromium: `$HOME/Library/Application Support/Chromium/NativeMessagingHosts`
- On Windows: in `%APPDATA%\firenvim` and check that the following registry keys exist and point to the native manifest:
- On Windows: in `%LOCALAPPDATA%\firenvim` and check that the following registry keys exist and point to the native manifest:
* For Firefox: `HKEY_CURRENT_USER\SOFTWARE\Mozilla\NativeMessagingHosts\firenvim`
* For Chrome/Chromium: `HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\firenvim`

Expand Down

0 comments on commit 471354b

Please sign in to comment.