


$ firefox-esr Error: cannot open display: wsl:0.0 Basically, thunderbird never cared what DISPLAY was set to. But if I tried to start firefox/firefox-esr I got failed access to DISPLAY. export DISPLAY=wsl:0.0 When testing both thunderbird and mousepad start fine. Share Improve this answer FollowThen I had set the DISPLAY variable in ~/.bashrc like this. :~# sudo gedit /etc/profile Unable to init server: Could not connect: Connection refused (gedit:8613): Gtk-WARNING **: 12:17:04.209: cannot open display: worked for this warning Simply change user, maybe you are running this command as root run this command directly from user it will work. I don't know if that is necessary but I tried anyway.

This should probably be a new thread, but the issue is the same as in the original. Remember that commands such as xhost will only work if the server is already running and logged in to. Automatic run is occurring prior to your user logging in. root) is not possible in the traditional way when using …Connection refused : cannot open display: You cannot display video without a logged in GUI context. Running applications under a different user (e.g. I guess you are using the Gnome Wayland Session.
