Also, if I open the desktop shortcut properties I see that target is
truncated:

C:\Windows\System32\wscript.exe C:\\Users\\username\wslu\runHidden.vbs
"C:\\Users\\username\\AppData\\Local\\Microsoft\\WindowsApps\\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\\ubuntu2004.exe"
run "cd ~; . /usr/share/wslu/wsl-integration.s

Could be that the target is too long when `--gui` flag is used?

Without `--gui` flag, the target is much shorter:

C:\Users\username\AppData\Local\Microsoft\WindowsApps\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\ubuntu2004.exe
run "cd ~;  terminator"

-- 
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/1914601

Title:
  GUI apps do not start from the link created

Status in wslu package in Ubuntu:
  New

Bug description:
  Description:    Ubuntu 20.04.2 LTS
  Release:        20.04

  wslu:
    Installed: 2.3.6-0ubuntu2~20.04.0
    Candidate: 2.3.6-0ubuntu2~20.04.0
    Version table:
   *** 2.3.6-0ubuntu2~20.04.0 500
          500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       2.3.6-0ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

  C:\Users\username\Desktop>wsl -l -v
    NAME                   STATE           VERSION
  * Ubuntu-20.04           Running         2

  $ wslusc --version
  wslu v2.3.6; wslusc v37

  $ wslusc terminator
  [info] Create shortcut terminator.lnk successful

  C:\Users\username\Desktop>terminator.lnk
  Unable to init server: Could not connect: Connection refused
  Unable to init server: Could not connect: Connection refused
  You need to run terminator in an X environment. Make sure $DISPLAY is 
properly set

  $ wslusc --gui terminator
  [info] Create shortcut terminator.lnk successful

  C:\Users\username\Desktop>terminator.lnk
  <nothing happens>

  Looks like DISPLAY propery is not set correctly by the underlying
  script:

  $ pwd
  /usr/share/wslu
  $ export DISPLAY=SHOULD_BE_SET
  $ . wsl-integration.sh
  $ echo $DISPLAY
  SHOULD_BE_SET

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1914601/+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

Reply via email to