[Bug 1855898] Re: Cache results of detecting X and PulseAudio when starting environment

Launchpad Bug Tracker 1855898 at bugs.launchpad.net
Wed Dec 11 19:05:27 UTC 2019


This bug was fixed in the package wslu - 2.3.2-0ubuntu4

---------------
wslu (2.3.2-0ubuntu4) focal; urgency=medium

  * debian/wsl-integration.sh: Set timeouts for X and PulseAudio detection.
    This fixes long startup time when detection fails after waiting for long.
    (LP: #1855520)
  * Cache results of detecting X and sound server in $HOME/.config/wsl/integration-cache.
    Reuse results when starting new shells in the same runnig WSL Ubuntu instance.
    (LP: #1855898)
  * debian/wsl-integration.sh: Use pactl stat instead of pactl info in detection.
    Pactl stat is slightly faster, ~0.3s vs. ~0.45s with pactl info when running
    on WSL1.

 -- Balint Reczey <rbalint at ubuntu.com>  Wed, 11 Dec 2019 15:45:09 +0100

** Changed in: wslu (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to wslu in Ubuntu.
https://bugs.launchpad.net/bugs/1855898

Title:
  Cache results of detecting X and PulseAudio when starting environment

Status in wslu package in Ubuntu:
  Fix Released

Bug description:
  [Impact]

   * Detecting X and PulseAudio takes some time when starting every shell even when it is unlikely that those servers go away between opening new shells.
   * The fix is reusing cached info when starting new shells.

  [ Test Case ]

   * Start X server and PulseAudio server on Windows, the host WSL system
   * run:

  rm -f $HOME/.config/wslu/integration-cache
  unset DISPLAY
  unset PULSE_SERVER
  time . /etc/profile.s/wsl-integration.sh
  echo $DISPLAY $PULSE_SERVER
  cat $HOME/.config/wslu/integration-cache
  time . /etc/profile.s/wsl-integration.sh

   * Ran all of that again with X server and PulseAudio server turned
  off

  [Regression Potential]

   * TODO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1855898/+subscriptions



More information about the foundations-bugs mailing list