基本界面达成

This commit is contained in:
2026-05-11 00:21:16 +08:00
parent 649677f564
commit 65f221a5d8
13 changed files with 1818 additions and 347 deletions

9
run.sh
View File

@@ -1,8 +1,9 @@
#!/bin/bash
# echo "Running Printer Screen Menu..."
# 激活虚拟环境
source "$(dirname "$0")/.venv/bin/activate"
# echo "Virtual environment activated."
# 告诉Qt使用 eglfs 插件(无桌面环境直接利用 KMS/DRM/EGL 渲染)
export QT_QPA_PLATFORM=eglfs
# export QT_QUICK_BACKEND=software
@@ -14,7 +15,11 @@ export QT_QPA_PLATFORM=eglfs
# 若启动报错,可以打开以下变量排查 eglfs 相关日志
# export QT_DEBUG_PLUGINS=1
# echo "QT_QPA_PLATFORM: $QT_QPA_PLATFORM"
# echo "directory: $(dirname "$0")"
# echo "Starting Printer Screen Menu..."
# 启动界面
python "$(dirname "$0")/main.py"
python "$(dirname "$0")/main.py" > /dev/null 2>&1
# python "$(dirname "$0")/main.py"
# .venv/bin/python main.py