From 997a39eb630d27d1754418811abccf99a7e01ba6 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Fri, 24 Feb 2023 23:49:22 +0000 Subject: [PATCH] add somethings --- mainwindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mainwindow.py b/mainwindow.py index d198421..0b1033c 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -2207,6 +2207,7 @@ try: for i in wine.keys(): if not os.system(f"which '{wine[i]}'"): canUseWine.append(i) + if os.path.exists("/persistent/linglong/layers/"): # 判断是否使用 linglong for i in os.listdir("/persistent/linglong/layers/"): try: @@ -2253,6 +2254,9 @@ try: if change: write_txt(get_home() + "/.config/deepin-wine-runner/WineSetting.json", json.dumps(setting)) try: + # Read /opt Wine + for i in os.listdir("/opt"): + pass # 不再从列表读取,直接读目录 for i in os.listdir(f"{programPath}/wine/"): #for i in json.loads(readtxt(f"{programPath}/wine/winelist.json")):