操作系统:Ubuntu 22.04 Desktop、Linux Kernel 6.2.0
编程环境:Qt 5.14.2、Qt Creator 4.11.1
警告内容:Qt Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
解决方案:
1、运行 sudo vim /etc/gdm3/custom.conf 命令。
sudo vim /etc/gdm3/custom.conf
2、将 #WaylandEnable=false 前的#去掉,修改之后的 /etc/gdm3/custom.conf 文件内容如下,保存后重启。
AutomaticLogin=kularb
Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
Enabling automatic login
Enabling timed login
推荐文章
发表评论