Skip to content

Commit ddcc97d

Browse files
authored
Powershell command for additional distro filesystems
Credit to @icylogic for providing this Powershell command to discover additional distros' filesystems
1 parent 6dfa9d6 commit ddcc97d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Documentation/LanguageServer/Windows Subsystem for Linux.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ For developers using Ubuntu with the current version of WSL released with the Fa
4545

4646
The `includePath` above includes the system header paths that gcc uses for C++ projects and matches the output of `gcc -v -E -x c++ - < /dev/null`. The intelliSenseMode should be set to **"clang-x64"** to get WSL projects to work properly with IntelliSense.
4747

48-
Note that `${localappdata}/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/` is the path to the root of the Ubuntu filesystem. This will be different if you are using a different distro.
48+
Note that `${localappdata}/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/` is the path to the root of the Ubuntu filesystem. This will be different if you are using a different distro. You can discover the paths to your distro's filesystem by using this handy Powershell command:
49+
50+
```Powershell
51+
PS R:\> ($(get-appxpackage).PackageFamilyName | findstr /i 'SUSE Ubuntu') -replace '^', "$`{localappdata`}/Packages/"
52+
53+
${localappdata}/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
54+
${localappdata}/Packages/46932SUSE.openSUSELeap42.2_022rs5jcyhyac
55+
${localappdata}/Packages/46932SUSE.SUSELinuxEnterpriseServer12SP2_022rs5jcyhyac
56+
```
4957

5058
For C projects, simply remove the c++ lines:
5159

0 commit comments

Comments
 (0)