#!/usr/bin/env sh
script_path=$(realpath $(dirname "$0"))
cmd="$script_path/treeland"
# Include all user arguments in test to ensure consistent environment
output=$($cmd --try-exec "$@" 2>&1)
exit_code=$?
if [ $exit_code -ne 0 ] && echo "$output" | grep -q "failed to create dri2 screen"; then
# In VirtualBox, if 3D acceleration is not enabled, calling `eglInitialize` will cause
# the program to crash. Therefore, a preliminary check is performed here: if `treeland`
# fails to exit normally, it falls back to pixman renderer mode.
export WLR_RENDERER=pixman
echo "Treeland crash, try fallback to software renderer."
fi
# Use exec to replace current process instead of creating a subprocess
# This ensures treeland directly replaces treeland.sh process, avoiding dual processes
export WLR_RENDERER=vulkan
exec $cmd "$@"
目前Better Deepin REPO正在准备上线从Ubuntu 25.10仓库弄下来的NVIDIA 610驱动 ( 注:不是直接拉deb包,而是拉对应源码进行构建 )
预计明天就上线, NV显卡用户可以试试水 (610驱动明确不支持GTX 10xx系,16xx系支持未知,有概率无法开机, 请谨慎尝试!!! 如果怕系统炸了不要安装! 该源目前也不会默认升级你的N卡驱动版本, 只是提供一个可选项!!!)
9月15日更新: 这个更新可能延迟, 因为需要魔改Ubuntu的NV驱动包
然后treeland进行了升级, 修复了输入法问题, Xwayland应用层级问题和增加了Vulkan Renderer后端支持, Vulkan后端要求你的显卡驱动至少有正常的Vulkan 1.3+驱动, Vulkan版本低于1.3的恕我没有测试过能不能跑, 驱动没有Vulkan支持的千万不要改!
如何开启Vulkan后端支持: 用这段脚本覆盖 /bin/treeland.sh 文件然后保存即可, 如何覆盖直接问AI即可: