mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-07-11 08:06:01 +08:00
支持调用GXDE的deepin-terminal-gtk
This commit is contained in:
parent
f9e9a4eb72
commit
18ce8a080f
@ -14,12 +14,14 @@ programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
|||||||
terminal = ""
|
terminal = ""
|
||||||
terminalList = [
|
terminalList = [
|
||||||
"deepin-terminal",
|
"deepin-terminal",
|
||||||
|
"deepin-terminal-gtk",
|
||||||
"mate-terminal",
|
"mate-terminal",
|
||||||
"gnome-terminal",
|
"gnome-terminal",
|
||||||
"xfce4-terminal"
|
"xfce4-terminal"
|
||||||
]
|
]
|
||||||
terminalEnd = {
|
terminalEnd = {
|
||||||
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
|
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
|
||||||
|
f"{programPath}/../launch.sh\" \"deepin-terminal-gtk": ["-e", 0],
|
||||||
"mate-terminal": ["-e", 1],
|
"mate-terminal": ["-e", 1],
|
||||||
"gnome-terminal": ["--", 0],
|
"gnome-terminal": ["--", 0],
|
||||||
"xfce4-terminal": ["-e", 1]
|
"xfce4-terminal": ["-e", 1]
|
||||||
@ -28,6 +30,8 @@ for i in terminalList:
|
|||||||
if not os.system(f"which {i}"):
|
if not os.system(f"which {i}"):
|
||||||
if i == "deepin-terminal":
|
if i == "deepin-terminal":
|
||||||
i = f"{programPath}/../launch.sh\" \"deepin-terminal"
|
i = f"{programPath}/../launch.sh\" \"deepin-terminal"
|
||||||
|
if i == "deepin-terminal-gtk":
|
||||||
|
i = f"{programPath}/../launch.sh\" \"deepin-terminal-gtk"
|
||||||
terminal = i
|
terminal = i
|
||||||
break
|
break
|
||||||
if terminal == "":
|
if terminal == "":
|
||||||
|
@ -8,7 +8,7 @@ Certainty: possible
|
|||||||
Check: binaries
|
Check: binaries
|
||||||
Type: binary, udeb
|
Type: binary, udeb
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, xfce4-terminal | deepin-terminal | mate-terminal | gnome-terminal, python3-dbus, python3-pip, p7zip-full | p7zip-legacy, sudo, python3-pyperclip, bubblewrap, zenity, tree, dpkg, fakeroot
|
Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal-gtk | xfce4-terminal | deepin-terminal | mate-terminal | gnome-terminal, python3-dbus, python3-pip, p7zip-full | p7zip-legacy, sudo, python3-pyperclip, bubblewrap, zenity, tree, dpkg, fakeroot
|
||||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, binfmt-support, libc6:i386, libc6:armhf, libwine, qemu-system, qemu-full, alien, spark-deepin-wine-runner-qemu-system-extra, deepin-wine8-stable | spark-wine | spark-wine9 | spark-wine9-wow | spark-wine8 | spark-wine8-wow | spark-wine7-devel | deepin-wine6-stable | deepin-wine5-stable | deepin-wine5 | deepin-wine | wine
|
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, binfmt-support, libc6:i386, libc6:armhf, libwine, qemu-system, qemu-full, alien, spark-deepin-wine-runner-qemu-system-extra, deepin-wine8-stable | spark-wine | spark-wine9 | spark-wine9-wow | spark-wine8 | spark-wine8-wow | spark-wine7-devel | deepin-wine6-stable | deepin-wine5-stable | deepin-wine5 | deepin-wine | wine
|
||||||
Section: utils
|
Section: utils
|
||||||
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
|
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
|
||||||
|
@ -142,6 +142,10 @@ def runexebutton(self):
|
|||||||
class QT:
|
class QT:
|
||||||
message = None
|
message = None
|
||||||
def ShowWineReturn(things):
|
def ShowWineReturn(things):
|
||||||
|
global unUseLnk
|
||||||
|
unUseLnk = True
|
||||||
|
# 不显示超链接
|
||||||
|
#returnText.setStyleSheet(returnText.styleSheet() + "a {color: white; text-decoration: none;}")
|
||||||
returnText.insertPlainText(things)
|
returnText.insertPlainText(things)
|
||||||
|
|
||||||
def ShowHistory(temp):
|
def ShowHistory(temp):
|
||||||
@ -2718,8 +2722,11 @@ returnText = QtWidgets.QTextBrowser()
|
|||||||
getUpdate = GetUpdateToShow()
|
getUpdate = GetUpdateToShow()
|
||||||
getUpdate.signal.connect(returnText.setHtml)
|
getUpdate.signal.connect(returnText.setHtml)
|
||||||
getUpdate.start()
|
getUpdate.start()
|
||||||
|
unUseLnk = False
|
||||||
def ReturnTextOpenUrl(url):
|
def ReturnTextOpenUrl(url):
|
||||||
print(url)
|
print(url)
|
||||||
|
if unUseLnk:
|
||||||
|
return
|
||||||
if url.url() == "http://update.gfdgdxi.top/update-wine-runner":
|
if url.url() == "http://update.gfdgdxi.top/update-wine-runner":
|
||||||
UpdateWindow.ShowWindow()
|
UpdateWindow.ShowWindow()
|
||||||
elif url.url() == "http://update.gfdgdxi.top/information-wine-runner":
|
elif url.url() == "http://update.gfdgdxi.top/information-wine-runner":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user