group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #33804
[Bug 1853343] Re: [SRU] Please detect sound and X server in WSL2, too
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
** Changed in: wslu (Ubuntu Disco)
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/1853343
Title:
[SRU] Please detect sound and X server in WSL2, too
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]
* Ubuntu in WSL2 does not detect the PulseAudio or X11 server running on Windows. Detecting them is easy and doing so improves the setup experience.
* The additional detection logic slowed down the login further, thus a minor speed optimization is also part of the change.
[Test Case] (Run once in WSL1 and once in WSL2)
* Install and start PulseAudio for Windows ( https://wiki.ubuntu.com/WSL#Enabling_Sound )
* Install and start an X11 server for Windows ( https://wiki.ubuntu.com/WSL#Running_Graphical_Applications )
* Start the Ubuntu WSL terminal
* Make sure pulseaudio is not installed:
$ pulseaudio
Command 'pulseaudio' not found, but can be installed with:
apt install pulseaudio
* Observe environment variables properly set:
$ echo DISPLAY=$DISPLAY PULSE_SERVER=$PULSE_SERVER
* Install pulseaudio
$ sudo apt install pulseaudio
* Close all Ubuntu WSL sessions
* Start the Ubuntu WSL terminal again
* Observe environment variables properly set:
$ echo DISPLAY=$DISPLAY PULSE_SERVER=$PULSE_SERVER
(Opening and closing the terminal can be replaced by clearing the
environment variables and the cache implemented in LP: #1855898)
[Regression Potential]
* Since the detection takes place in setting the profile mistakes in
the implementation may trigger errors show to the users on login.
Detecting X and PulseAudio may also break in WSL1 with the changed
detection logic, but tests include verifying that this still works.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wslu/+bug/1853343/+subscriptions