修复/tmp问题

This commit is contained in:
2024-07-21 17:49:45 +08:00
parent 6ac4a191ca
commit 7a175c957a
4 changed files with 9 additions and 2 deletions

View File

@@ -3,10 +3,10 @@ CURRENT_DIR=$(dirname $(readlink -f "$0"))
if [[ ! -d $TMPDIR/tmp ]]; then
mkdir -p $TMPDIR/tmp
fi
if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]]; then
# 自动配置 NoVNC
export DISPLAY=:5
vncserver -kill :5
vncserver $DISPLAY &
sleep 3
xfwm4 &