This commit is contained in:
2022-09-05 13:33:53 +08:00
parent 63b136519d
commit d28d21557c
13 changed files with 35 additions and 15 deletions

View File

@@ -15,17 +15,17 @@ terminalList = [
"gnome-terminal"
]
terminalEnd = {
f"{programPath}/launch.sh\" \"deepin-terminal": ["-e", 0],
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
"mate-terminal": ["-e", 1],
"gnome-terminal": ["--", 0]
}
for i in terminalList:
if not os.system(f"which {i}"):
if i == "deepin-terminal":
i = f"{programPath}/launch.sh\" \"deepin-terminal"
i = f"{programPath}/../launch.sh\" \"deepin-terminal"
terminal = i
break
if terminal == "":
print("无法识别到以下的任意一个终端")
print(" ".join(terminalList))
exit()
exit()