Wslusc shortcut not working

Bug #1871986 reported by Patrick Wu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wslu
Fix Released
Unknown
wslu (Ubuntu)
Fix Released
Critical
Patrick Wu

Bug Description

Upstream bug reported: https://github.com/wslutilities/wslu/issues/110

**Background Information:**

WSL: Ubuntu 18.04
Version: 2.3.2-0ubuntu2~18.04.3
When creating a Win shortcut for a GUI Linux program I end up with a shortcut that is not working.

**To Reproduce**
wslusc --gui pycharm.sh

This results in a shortcut with the following target:

C:\Windows\System32\wscript.exe C:\Users\Marco Brieden\wslu\runHidden.vbs C:\Users\Marco Brieden\AppData\Local\Microsoft\WindowsApps\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\ubuntu1804.exe run "cd ~; . /usr/share/wslu/wsl-integration

When opened it gives this error:
"There is no file extension in "C:\Users\Marco"

**Additional context**
It looks like there are two separate issues:

1. The space in my username breaks the shortcut.
2. The max length of the "target" field has been exceeded and the command got cut off.

Related branches

Patrick Wu (callmepk)
Changed in wslu (Ubuntu):
importance: Undecided → Critical
status: New → In Progress
Changed in wslu:
importance: Unknown → Critical
Changed in wslu (Ubuntu):
assignee: nobody → Patrick Wu (callmepk)
Changed in wslu:
importance: Critical → Unknown
status: Unknown → New
Patrick Wu (callmepk)
Changed in wslu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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 address hidden> Thu, 09 Apr 2020 20:27:13 +0800

Changed in wslu (Ubuntu):
status: Fix Committed → Fix Released
Changed in wslu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.