Skip to content

Commit 60cdf82

Browse files
committed
fix(WSLENV): properly translate paths in WSLENV environment variable into unix-style path
use `/p` flag to properly translate Windows paths to WSL paths. `WSLENV=plum_path` transfer the `plum_path` var as is into wsl, which is invalid in wsl. `WSLENV=plum_path/p` will automatically translate plum_path into unix-style path, like `C:\rime => /mnt/c/rime`.
1 parent 4c28f11 commit 60cdf82

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rime-install.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ exit /b
212212
call :install_git /needed
213213
if errorlevel 1 exit /b %errorlevel%
214214

215-
set WSLENV=plum_dir:rime_dir
215+
rem use /p flag to properly translate Windows paths to WSL paths
216+
set WSLENV=plum_dir/p:rime_dir/p
216217

217218
if defined plum_dir if exist "%plum_dir%"/rime-install (
218219
bash "%plum_dir%"/rime-install %*

0 commit comments

Comments
 (0)