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