You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git cd ubuntu-wsl2-systemd-script/ bash ubuntu-wsl2-systemd-script.sh
exit Ubuntu and in Windows command line run wsl --shutdown
Start VcXsrv and in the launcher, uncheck "Native opengl" and check "Disable access control"
Enter wsl
The problems are:
If I run gnome-session, the GNOME desktop appears but crashes after about one minute.
If I click "Log Out" button and run gnome-session again in WSL, I receive the following error:
** (process:970): WARNING **: 07:43:49.894: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: No such file or directory
Terminated
If I run export XDG_CURRENT_DESKTOP=ubuntu:GNOME and run gnome-session again, I receive just "Terminated".
If I run dbus-launch --exit-with-session gnome-session, the GNOME desktop does not crash, but I get a lot of other problems.
2.1) dialog freezes easily on desktop, and I can find no way to remove them.
2.2) Because of 2.1), the frozen dialog covers the desktop, so I can't log out or power down the GNOME desktop using its GUI. If I press Ctrl-C in command line and try to run dbus-launch --exit-with-session gnome-session again, I receive an error saying
dbus[1560]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" not available: No such file or directory
2.3) If I run dbus-launch --exit-with-session gnome-session with sudo, I can go back into the GNOME desktop, but the desktop is still covered by frozen dialogs, and I cannot type in the search bar of Activities.
2.4) If I click "Power Off" in the GNOME desktop, the desktop does not power off, but stops response unless I press Ctrl-C in WSL command line. In that case, the desktop shows this:
and the erroneous desktop quits if I click "Log Out" button. If I quit WSL, run wsl --shutdown in Windows command line and run wsl again, dbus-launch --exit-with-session gnome-session can start the GNOME desktop but got the same problem of 2.3), and so on and on ...
Do you know how these problems are caused according to my steps, or how to fix these issues, or how to reset the GNOME desktop to remove the frozen dialogs (if I don't have to redo the whole thing due to brick)? Thanks a lot.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Environment:
I installed Ubuntu 22.04 and GNOME desktop in WSL2. Below are the steps:
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
cd ubuntu-wsl2-systemd-script/
bash ubuntu-wsl2-systemd-script.sh
wsl --shutdown
The problems are:
gnome-session
, the GNOME desktop appears but crashes after about one minute.If I click "Log Out" button and run
gnome-session
again in WSL, I receive the following error:If I run
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
and rungnome-session
again, I receive just "Terminated".dbus-launch --exit-with-session gnome-session
, the GNOME desktop does not crash, but I get a lot of other problems.2.1) dialog freezes easily on desktop, and I can find no way to remove them.
2.2) Because of 2.1), the frozen dialog covers the desktop, so I can't log out or power down the GNOME desktop using its GUI. If I press Ctrl-C in command line and try to run
dbus-launch --exit-with-session gnome-session
again, I receive an error saying2.3) If I run
dbus-launch --exit-with-session gnome-session
with sudo, I can go back into the GNOME desktop, but the desktop is still covered by frozen dialogs, and I cannot type in the search bar of Activities.2.4) If I click "Power Off" in the GNOME desktop, the desktop does not power off, but stops response unless I press Ctrl-C in WSL command line. In that case, the desktop shows this:
and the erroneous desktop quits if I click "Log Out" button. If I quit WSL, run
wsl --shutdown
in Windows command line and run wsl again,dbus-launch --exit-with-session gnome-session
can start the GNOME desktop but got the same problem of 2.3), and so on and on ...Do you know how these problems are caused according to my steps, or how to fix these issues, or how to reset the GNOME desktop to remove the frozen dialogs (if I don't have to redo the whole thing due to brick)? Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions