mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
优化在termux的使用体验
This commit is contained in:
14
mainwindow-termux-loader.sh
Executable file
14
mainwindow-termux-loader.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
CURRENT_DIR=$(cd $(dirname $0); pwd)
|
||||
if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]]; then
|
||||
# 自动配置 NoVNC
|
||||
export DISPLAY=:5
|
||||
vncserver $DISPLAY &
|
||||
sleep 3
|
||||
xfwm4 &
|
||||
if [[ -f /data/data/com.termux/files/usr/bin/startxfce4 ]]; then
|
||||
startxfce4 &
|
||||
fi
|
||||
$CURRENT_DIR/novnc/utils/novnc_proxy --vnc localhost:5905 &
|
||||
fi
|
||||
python3 $CURRENT_DIR/mainwindow.py
|
||||
Reference in New Issue
Block a user