计算机知识分享网

【ubuntu】ubuntu22.04修改默认桌面为x11模式

现在Linux很多新版本,默认桌面都是Wayland模式,我们可以选择X11协议模式

修改配置文件,关闭wayland
sudo nano /etc/gdm3/custom.conf
#WaylandEnable=false前的#删掉
david@david:~$ sudo cat /etc/gdm3/custom.conf 
[sudo] david 的密码: 
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true

david@david:~$ 
重启操作系统后,从设置里面就可以看出已经改了显示模式,这样todesk这种软件也可以使用了

#Ubuntu