一、安装依赖文件
代码: 全选
sudo apt install libfdk-aac2 qtwayland5
代码: 全选
sudo dpkg -i libobs0_26.1.2+dfsg1-1-myubuntu_amd64.deb \
obs-plugins_26.1.2+dfsg1-1-myubuntu_amd64.deb \
obs-studio_26.1.2+dfsg1-1-myubuntu_amd64.deb
代码: 全选
# 修改gdm3配置文件,确保启用wayland
sed "s/^\\(WaylandEnable=\\).*/\\1true/" /etc/gdm3/custom.conf | sudo tee /etc/gdm3/custom.conf
# 添加环境变量
sudo tee /etc/profile.d/qtwayland5.sh >/dev/null << 'EOF'
# /etc/profile.d/qtwayland5.sh
#
# This sets the QT_QPA_PLATFORM variables on Wayland.
test "$XDG_SESSION_TYPE" = 'wayland' || return
if [ -z "$QT_QPA_PLATFORM" ]; then
export QT_QPA_PLATFORM=wayland
fi
EOF
# 给予权限
sudo chmod 0644 /etc/profile.d/qtwayland5.sh
sudo chown root:root /etc/profile.d/qtwayland5.sh