-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start Systemd and cannot start firefox #838
Comments
I am guessing it might be related to permissions, does it work without sudo? |
same!! |
firefox without sudo did not work,the same as sudo .Other program work without sudo but can not run with sudo |
@qyw233 what is the output of |
@qyw233 By default sudo does not preserve user env vars set by wsl. In order to preserve env while running the command with sudo you need to add -E flag:
try running apps with: $ sudo -E <comm> |
Warning: journal has been rotated since unit was started, output may be incomplete. |
@tusharsnn Oh!I can use sudo -E geany to open geany.But firefox cannot open with or without sudo.
firefox cannot use sudo |
Currently we are aware of systemd and WSLg is not working along on Ubuntu 20.04. You can try Ubuntu 22.04 or 18.04, or Debian as workaround, we will look into the root cause with 20.04, thanks! |
systemd and WSLg does not work on my Ubuntu 22.04 installation .. Could be related to #844 |
Hi all, WSL 0.70.0 is just released and it addresses various issues with systemd, including the problem like this, please update by |
Windows build number:
22622.0
Your Distribution version:
20.04
Your WSL versions:
WSL 版本: 0.67.6.0
内核版本: 5.15.62.1
WSLg 版本: 1.0.44
MSRDC 版本: 1.2.3401
Direct3D 版本: 1.606.4
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本: 10.0.22622.601
Steps to reproduce:
1.start Systemd https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
2.start firefox then show unable to init server: could not connect: connection refused error cannot open display: :0
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
No response
Actual behavior:
as I start Systemd following https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/,then I can not start firefox and other application with sudo such as sudo geany
it says unable to init server: could not connect: connection refused error cannot open display: :0
The text was updated successfully, but these errors were encountered: