11 Star 138 Fork 25

gfdgd xi/Wine 运行器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mainwindow-termux-loader.sh 801 Bytes
一键复制 编辑 原始数据 按行查看 历史
gfdgd xi 提交于 2024-08-03 18:02 . termux默认也使用标签页页面
#!/data/data/com.termux/files/usr/bin/bash
CURRENT_DIR=$(dirname $(readlink -f "$0"))
if [[ ! -d $TMPDIR/tmp ]]; then
mkdir -p $TMPDIR/tmp
fi
noVNCOption="--listen localhost:6080"
VNCServerOption="-localhost yes"
if [[ -f $HOME/.config/deepin-wine-runner/vnc-public ]]; then
unset noVNCOption
unset VNCServerOption
fi
if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]] && [[ -f /data/data/com.termux/files/usr/bin/vncpasswd ]]; then
# 自动配置 NoVNC
export DISPLAY=:5
vncserver -kill :5
vncserver $DISPLAY $VNCServerOption &
sleep 3
xfwm4 &
if [[ -f /data/data/com.termux/files/usr/bin/startxfce4 ]]; then
startxfce4 &
fi
$CURRENT_DIR/VM/novnc/utils/novnc_proxy --vnc localhost:5905 $noVNCOption &
fi
python3 $CURRENT_DIR/main.py
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/gfdgd-xi/deep-wine-runner.git
git@gitee.com:gfdgd-xi/deep-wine-runner.git
gfdgd-xi
deep-wine-runner
Wine 运行器
main

搜索帮助

A270a887 8829481 3d7a4017 8829481