diff --git a/deemix_gui.py b/deemix_gui.py index cecd6ce..ad8475c 100644 --- a/deemix_gui.py +++ b/deemix_gui.py @@ -93,14 +93,7 @@ if __name__ == '__main__': }) webview.start(gui='cef') elif sys.platform == "linux": - try: - 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') + webview.start(gui='qt') else: webview.start() conn = HTTPConnection(url, port) diff --git a/requirements.txt b/requirements.txt index ad71ac0..18d7447 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ flask flask-socketio pywebview>=3.3.2 cefpython3; platform_system == "Windows" +pywebview[qt]>=3.3.2; platform_system == "Linux" diff --git a/requirements_gtk.txt b/requirements_gtk.txt deleted file mode 100644 index 57e392c..0000000 --- a/requirements_gtk.txt +++ /dev/null @@ -1,2 +0,0 @@ --r requirements.txt -PyGObject diff --git a/requirements_qt.txt b/requirements_qt.txt deleted file mode 100644 index 9a1a31d..0000000 --- a/requirements_qt.txt +++ /dev/null @@ -1,4 +0,0 @@ --r requirements.txt -PyQt5 -PyQtWebEngine -pywebview[qt]>=3.3.2 diff --git a/webui b/webui index e1a3e8b..bf532ba 160000 --- a/webui +++ b/webui @@ -1 +1 @@ -Subproject commit e1a3e8b5625a2f3288dc52ebd545b41e31f6e43c +Subproject commit bf532ba62ec961c16995e46e2bb1aab32a740353