Comment 5 for bug 1914601

Revision history for this message
Mark Mitrushkin (mark-mitrushkin) wrote :

Hi,

I've tested the version from PPA:

$ wslusc --version
wslu v3.2.1-1; wslusc v40
$ wslusc --gui terminator
[warn] wsl-term.ico not found in Windows directory. Copying right now...
[info] wsl-term.ico copied. Located at "/mnt/c/Users/username/wslu".
[warn] wsl-gui.ico not found in Windows directory. Copying right now...
[info] wsl-gui.ico copied. Located at "/mnt/c/Users/username/wslu".
[info] Create shortcut terminator.lnk successful

And the shortcut doesn't work and I think I know why. DISPLAY option is not set properly by the script:

$ echo $DISPLAY
172.18.96.1:0 # this should be the correct one
$ unset DISPLAY
$ . wslusc-helper.sh
$ echo $DISPLAY
192.168.0.16:0.0 # this is what is set by the script

The correct way would be setting DISPLAY from /etc/reslv.conf:

$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.18.96.1