修复虚拟机工具在检测到 Qemu 磁盘但没有安装 Qemu 时无法启动的问题

This commit is contained in:
2023-08-09 14:54:53 +08:00
parent 226db3dfd6
commit 7794df8170
2 changed files with 12 additions and 10 deletions

View File

@@ -14,7 +14,8 @@ if [[ 0 == $? ]]; then
exit
fi
# 检查是否有 QEMU
if [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
which qemu-system-x86_64
if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
if [[ -f "$HOME/.config/deepin-wine-runner/QemuSetting.json" ]]; then
echo 有设置文件,读设置文件
cd `dirname $0`