优化移除容器

This commit is contained in:
2022-12-04 22:28:56 +08:00
parent c8ccc1dff5
commit 66963e6f26
11 changed files with 172 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ if __name__ == "__main__":
continue
if os.path.ismount(f"{bottlePath}/dev"):
os.system(f"pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash '{programPath}/UnMount.sh' '{bottlePath}' ")
os.system("touch /tmp/deepin-wine-runner-qemu-lock")
# 判断是否挂载
if not os.path.ismount(f"{homePath}/.deepin-wine-runner-ubuntu-images/{sys.argv[1]}/dev"):
print("文件暂未挂载,开始挂载")