Last active
April 11, 2020 15:26
-
-
Save remlapmot/23af202e79dc31cecb66736c5c45a2a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Launch an X11 window | |
start /B ubuntu-nodec.xlaunch | |
REM Start pulseaudio | |
start "" /B "C:\bin\pulseaudio-1.1\bin\pulseaudio.exe" | |
REM For WSL 1 | |
REM ubuntu1804.exe run "if [ -z \"$(pidof mate-session)\" ]; then export DISPLAY=127.0.0.1:0.0; export PULSE_SERVER=tcp:127.0.0.1; mate-session; pkill '(gpg|ssh)-agent'; taskkill.exe /IM pulseaudio.exe /F; taskkill.exe /IM vcxsrv.exe; fi;" | |
REM For WSL 2 | |
ubuntu1804.exe run "if [ -z \"$(pidof mate-session)\" ]; then export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0; export PULSE_SERVER=tcp:$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'); mate-session; pkill '(gpg|ssh)-agent'; taskkill.exe /IM pulseaudio.exe /F; taskkill.exe /IM vcxsrv.exe; fi;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
x410.exe
auth-anonymous=1
setting on line 61 ofdefault.pa
as per here but I did not need to recompile the Linux pulseaudioubuntu1804.exe
is%localappdata%\Microsoft\WindowsApps