This bug was fixed in the package wslu - 2.3.6-0ubuntu1
---------------
wslu (2.3.6-0ubuntu1) focal; urgency=medium
[ Patrick Wu ]
* Upstream update to 2.3.6 to address critical issues (LP: #1871986)
- wslupath manpage update
- fixes that imported distro cannot be properly handled by baseexec_gen
- fix an issue in handling dirty output in regenerate baseexec
- fix an issue in generating ~/.config/baseexec
- wslusc: fix an issue that will cause generated shortcut cannot be opened
for some users
* Update patches
* debian/wsl-integration.sh: removal links in profile.d as requested by MSFT.
* debian/wsl-integration.sh: Fix issue that space in username breaks
wsl-integration.sh. (LP: #1869878)
* debian/wsl-integration.sh: Use /tmp folder for system users who do not have
$HOME. (LP: #1859509)
[ Balint Reczey ]
* debian/wsl-integration.sh: Suppress errors when saving $HOME/.cache.
(LP: #1859509)
* debian/wsl-integration.sh: debian/wsl-integration.sh unset the right
variable at the end of script. (LP: #1857426)
-- Patrick Wu <[email protected]> Thu, 09 Apr 2020 20:27:13
+0800
** Changed in: wslu (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to wslu in Ubuntu.
https://bugs.launchpad.net/bugs/1869878
Title:
Space in username breaks wsl integration cache
Status in wslu package in Ubuntu:
Fix Released
Bug description:
* What you're doing and what's happening: launching bash from a user
whose name includes a space breaks /etc/profile.d/wsl-integration.sh
* What's wrong / what should be happening instead:
> PS C:\Users\Jack Troughton\git\dcp-jason> bash
> -bash: [: /mnt/c/Users/Jack: binary operator expected
> mkdir: cannot create directory ë/mnt/c/Users/Jackí: Permission denied
> -bash: $WSL_INTEGRATION_CACHE: ambiguous redirect
>
>
The reason it breaks is due to incorrect quoting around $HOME and
things derived from it. It looks like you have parallel issues as
well which could break pulse audio on a machine with a space in its
hostname (is that legal in windows-land?)
I have created a zip file containing a fix, both the complete script
and a unified context diff. I hereby place my changes in the public
domain, free for use by anybody for anything.
The fix is at http://people.kingsds.network/wesgarland/wsl-
integration-fix.zip
Windows build number: Microsoft Windows [Version 10.0.18362.720]
My WSL is the Ubuntu flavour of
Linux version 4.4.0-18362-Microsoft ([email protected]) (gcc version
5.4.0 (GCC) ) #476-Microsoft Fri Nov 01 16:53:00 PST 2019
lsb_release -rd says
Description: Ubuntu 18.04.4 LTS
Release: 18.04
apt-cache policy wslu says
wslu:
Installed: (none)
Candidate: 2.3.2-0ubuntu2~18.04.3
Version table:
2.3.2-0ubuntu2~18.04.3 500
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64
Packages
500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main i386
Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1869878/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp