From 471354b1721d7082ffc3468dc84578e6ee42f163 Mon Sep 17 00:00:00 2001 From: xudyang1 <61672396+xudyang1@users.noreply.github.com> Date: Sat, 20 Jan 2024 00:42:58 -0500 Subject: [PATCH] chore(doc): use correct env var in TROUBLESHOOTING `%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) --- TROUBLESHOOTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index b224a585..a0922320 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -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 ``` @@ -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`