Returns the prefix to use to build WSL paths. @return WSL path prefix. Defaults to "/mnt".
| 588 | // @return WSL path prefix. Defaults to "/mnt". |
| 589 | // |
| 590 | std::wstring Settings::GetWSLPathPrefix() const |
| 591 | { |
| 592 | // Perform late-revising. |
| 593 | Revise(); |
| 594 | |
| 595 | std::wstring wslPathPrefix; |
| 596 | if (PluginUtils::ReadRegistryStringValue(m_UserKey, SETTING_WSL_PATH_PREFIX, wslPathPrefix) != ERROR_SUCCESS) { |
| 597 | wslPathPrefix = SETTING_WSL_PATH_PREFIX_DEFAULT; |
| 598 | } |
| 599 | return wslPathPrefix; |
| 600 | } |
| 601 | |
| 602 | // |
| 603 | // Returns the plugin to use when user opens the contextual menu |