DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 382 forks source link

It breaks sharing environment vars between WSL and Windows #60

Open mlembke opened 3 years ago

mlembke commented 3 years ago

WSL Ubuntu 20.04 LTS, Windows 20H2 (OS Build 19042.1052)

After installation, env variables defined in WSLENV are not present in bash environment.

Before the installation:

mlembke@mlembke:~$ echo $WSLENV
WT_SESSION:WT_PROFILE_ID
mlembke@mlembke:~$ echo $WT_PROFILE_ID
{2c4de342-38b7-51cf-b940-2309a097f518}
mlembke@mlembke:~$ 

After the installation:

mlembke@mlembke:~$ echo $WSLENV
WT_SESSION:BASH_ENV/u:WT_PROFILE_ID
mlembke@mlembke:~$ echo $WT_PROFILE_ID

mlembke@mlembke:~$ 

Any ideas how to fix it?

Satinelamp commented 2 years ago

after executing the script, I can't run the docker desktop installed in Win10 for WSL.