[SRU] Please detect sound and X server in WSL2, too
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wslu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
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:/
* Install and start an X11 server for Windows ( https:/
* 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=
* 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=
(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.
Related branches
- Sebastien Bacher: Pending requested
- Ubuntu Core Development Team: Pending requested
-
Diff: 37 lines (+20/-10)1 file modifieddebian/wsl-integration.sh (+20/-10)
description: | updated |
Changed in wslu (Ubuntu): | |
status: | New → In Progress |
summary: |
- Please detect sound and X server in WSL2, too + [SRU] Please detect sound and X server in WSL2, too |
description: | updated |
description: | updated |
tags: | added: id-5ce6a5e345ddef1e155c1fcd |
This bug was fixed in the package wslu - 2.3.2-0ubuntu3
---------------
wslu (2.3.2-0ubuntu3) focal; urgency=medium
* Detect X and PulseAudio in WSL2, too (LP: #1853343) wsl-integration .sh: Use type instead of which for faster execution.
* debian/
Also skip all detection steps when pactl and xvinfo are not installed.
-- Balint Reczey <email address hidden> Mon, 25 Nov 2019 10:50:14 +0100