From 6ac4a191ca73ece5f08f2b7c9545294f2de67de3 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 21 Jul 2024 13:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=89=93?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow-termux-loader.sh | 3 +++ updatekiller.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mainwindow-termux-loader.sh b/mainwindow-termux-loader.sh index 90499ca..763ea66 100755 --- a/mainwindow-termux-loader.sh +++ b/mainwindow-termux-loader.sh @@ -1,5 +1,8 @@ #!/data/data/com.termux/files/usr/bin/bash CURRENT_DIR=$(dirname $(readlink -f "$0")) +if [[ ! -d $TMPDIR/tmp ]]; then + mkdir -p $TMPDIR/tmp +fi if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]]; then # 自动配置 NoVNC diff --git a/updatekiller.py b/updatekiller.py index 1eb419b..9bb73da 100755 --- a/updatekiller.py +++ b/updatekiller.py @@ -3,7 +3,7 @@ import sys import os import atexit -PIDFILE = os.getenv() + '/tmp/deepin-wine-runner.pid' +PIDFILE = os.getenv("TMPDIR") + '/tmp/deepin-wine-runner.pid' #程序结束时清理pid @atexit.register