Made the app use qt on linux as it's more stable

This commit is contained in:
RemixDev 2020-08-19 19:05:11 +02:00
parent 58212b576f
commit 041f285872
5 changed files with 3 additions and 15 deletions

View file

@ -93,14 +93,7 @@ if __name__ == '__main__':
}) })
webview.start(gui='cef') webview.start(gui='cef')
elif sys.platform == "linux": elif sys.platform == "linux":
try: webview.start(gui='qt')
from gi import require_version as rv
rv('WebKit2', '4.0')
print("Starting with GTK")
webview.start()
except (ValueError, ImportError):
print("Starting with QT")
webview.start(gui='qt')
else: else:
webview.start() webview.start()
conn = HTTPConnection(url, port) conn = HTTPConnection(url, port)

View file

@ -3,3 +3,4 @@ flask
flask-socketio flask-socketio
pywebview>=3.3.2 pywebview>=3.3.2
cefpython3; platform_system == "Windows" cefpython3; platform_system == "Windows"
pywebview[qt]>=3.3.2; platform_system == "Linux"

View file

@ -1,2 +0,0 @@
-r requirements.txt
PyGObject

View file

@ -1,4 +0,0 @@
-r requirements.txt
PyQt5
PyQtWebEngine
pywebview[qt]>=3.3.2

2
webui

@ -1 +1 @@
Subproject commit e1a3e8b5625a2f3288dc52ebd545b41e31f6e43c Subproject commit bf532ba62ec961c16995e46e2bb1aab32a740353