0

Two days ago I have install Ubuntu 22.04. I was trying to restart the gnome shell using ALT+Fn+F2. The command prompt opened but when I wrote 'r' and enter it is not restarting. The following message was coming as displayed on the image

enter image description here

What can I do now to resolve this problem?

0

2 Answers 2

1

Please enter this command:

echo $XDG_SESSION_TYPE

If the above command outputs, wayland, your system is using wayland.

We have to disable wayland and enable xorg (x11). To do this,

Please go to this file

sudo nano /etc/gdm3/custom.conf

Uncomment this line. WaylandEnable=false

Reboot your system.

Voila! You can now press ALT+F2 and then press r to restart your gnome shell.

echo $XDG_SESSION_TYPE

Now it should display x11.

Enjoy!

0

a Gnome mailing list thread says that:

runDialog: Disable restart command on wayland

Clients can be expected to deal with the WM going away temporarily, but not the display server - so when running as wayland compositor, a restart is generally a fancy way of killing the user session, and there's little we can do about it except for preventing the user to shoot herself in the foot by throwing an error.

2
  • That means I cannot do anything to solve this? Jun 30, 2022 at 9:13
  • Under Wayland, gnome-shell does not have a graceful way to restart and leave the applications open. If you must restart gnome-shell then you are probably better off saving all of your work and using the menu to log out. If that's not working for some reason, the command killall -HUP gnome-shell will get it done from the command runner (Alt+F2) or terminal.
    – Daniel
    Jun 30, 2022 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.