← Back to team overview

group.of.nepali.translators team mailing list archive

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

 

This bug was fixed in the package wslu - 2.3.2-0ubuntu2~19.10.3

---------------
wslu (2.3.2-0ubuntu2~19.10.3) eoan; urgency=medium

  * Detect X and PulseAudio in WSL2, too (LP: #1853343)
  * debian/wsl-integration.sh: Use type instead of which for faster execution.
    Also skip all detection steps when pactl and xvinfo are not installed.
  * 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/.cache/wslu/integration. (LP: #1855898)
    Reuse results when starting new shells in the same running
    WSL Ubuntu instance.

 -- Balint Reczey <rbalint@xxxxxxxxxx>  Wed, 11 Dec 2019 21:33:12 +0100

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

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
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
Status in wslu source package in Xenial:
  Fix Committed
Status in wslu source package in Bionic:
  Fix Committed
Status in wslu source package in Disco:
  Fix Released
Status in wslu source package in Eoan:
  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/.cache/wslu/integration
  unset DISPLAY
  unset PULSE_SERVER
  time . /etc/profile.d/wsl-integration.sh
  echo $DISPLAY $PULSE_SERVER
  cat $HOME/.cache/wslu/integration
  time . /etc/profile.d/wsl-integration.sh

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

  [Regression Potential]

   * Wrong implementation of  caching logic may break auto detection or
  cache a wrong result. The test case ensures that auto detection is
  still working and also checks the cache content.

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