修复无法打开的问题

This commit is contained in:
gfdgd xi 2024-07-21 13:11:39 +08:00
parent 9296914ed5
commit 6ac4a191ca
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#!/data/data/com.termux/files/usr/bin/bash #!/data/data/com.termux/files/usr/bin/bash
CURRENT_DIR=$(dirname $(readlink -f "$0")) CURRENT_DIR=$(dirname $(readlink -f "$0"))
if [[ ! -d $TMPDIR/tmp ]]; then
mkdir -p $TMPDIR/tmp
fi
if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]]; then if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]]; then
# 自动配置 NoVNC # 自动配置 NoVNC

View File

@ -3,7 +3,7 @@ import sys
import os import os
import atexit import atexit
PIDFILE = os.getenv() + '/tmp/deepin-wine-runner.pid' PIDFILE = os.getenv("TMPDIR") + '/tmp/deepin-wine-runner.pid'
#程序结束时清理pid #程序结束时清理pid
@atexit.register @atexit.register