通过 命令查看 linux桌面使用的是wayland 还是 X11

命令行键入下方命令

echo $XDG_SESSION_TYPE

原文地址:https://www.cnblogs.com/wangshaodong/p/15384062.html