mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-27 16:38:06 +08:00
该睡觉了
This commit is contained in:
parent
49c37d8a9f
commit
4334c424ac
@ -1,4 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
import PyQt5.QtWidgets as QtWidgets
|
||||||
def OpenTerminal(command):
|
def OpenTerminal(command):
|
||||||
if terminalEnd[terminal][1]:
|
if terminalEnd[terminal][1]:
|
||||||
os.system(f"\"{terminal}\" \"{terminalEnd[terminal][0]}\" \"{command}\"")
|
os.system(f"\"{terminal}\" \"{terminalEnd[terminal][0]}\" \"{command}\"")
|
||||||
@ -12,12 +14,14 @@ terminal = ""
|
|||||||
terminalList = [
|
terminalList = [
|
||||||
"deepin-terminal",
|
"deepin-terminal",
|
||||||
"mate-terminal",
|
"mate-terminal",
|
||||||
"gnome-terminal"
|
"gnome-terminal",
|
||||||
|
"xfce4-terminal"
|
||||||
]
|
]
|
||||||
terminalEnd = {
|
terminalEnd = {
|
||||||
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
|
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
|
||||||
"mate-terminal": ["-e", 1],
|
"mate-terminal": ["-e", 1],
|
||||||
"gnome-terminal": ["--", 0]
|
"gnome-terminal": ["--", 0],
|
||||||
|
"xfce4-terminal": ["-e", 1]
|
||||||
}
|
}
|
||||||
for i in terminalList:
|
for i in terminalList:
|
||||||
if not os.system(f"which {i}"):
|
if not os.system(f"which {i}"):
|
||||||
@ -28,4 +32,6 @@ for i in terminalList:
|
|||||||
if terminal == "":
|
if terminal == "":
|
||||||
print("无法识别到以下的任意一个终端")
|
print("无法识别到以下的任意一个终端")
|
||||||
print(" ".join(terminalList))
|
print(" ".join(terminalList))
|
||||||
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
|
QtWidgets.QMessageBox.critical(None, "错误", "无法识别到以下的任意一个终端\n" + " ".join(terminalList))
|
||||||
exit()
|
exit()
|
||||||
|
Binary file not shown.
@ -1633,6 +1633,7 @@ updateThingsString = '''※1、Dll 提取工具支持 NT 6.X 及以上版本的
|
|||||||
※5、修复无法正常评分的问题
|
※5、修复无法正常评分的问题
|
||||||
※6、修复 QQ、TIM 安装后无法正常生成快捷方式的问题
|
※6、修复 QQ、TIM 安装后无法正常生成快捷方式的问题
|
||||||
7、更新组件安装的离线列表
|
7、更新组件安装的离线列表
|
||||||
|
8、不再强制依赖深度终端,只做推荐安装
|
||||||
'''
|
'''
|
||||||
for i in information["Thank"]:
|
for i in information["Thank"]:
|
||||||
thankText += f"{i}\n"
|
thankText += f"{i}\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user