mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-01 04:16:08 +00:00
Added qt as fallback if gtk is not installed on linux
This commit is contained in:
parent
28213b55da
commit
18a5bb760d
|
@ -84,9 +84,18 @@ if __name__ == '__main__':
|
||||||
'persist_session_cookies': True,
|
'persist_session_cookies': True,
|
||||||
'cache_path': configFolder
|
'cache_path': configFolder
|
||||||
})
|
})
|
||||||
webview.start(gui='cef', debug=True)
|
webview.start(gui='cef')
|
||||||
|
if sys.platform == "linux":
|
||||||
|
try:
|
||||||
|
from gi import require_version as rv
|
||||||
|
rv('WebKit2', '4.0')
|
||||||
|
print("Starting with GTK")
|
||||||
|
webview.start()
|
||||||
|
except ValueError:
|
||||||
|
print("Starting with QT")
|
||||||
|
webview.start(gui='qt')
|
||||||
else:
|
else:
|
||||||
webview.start(debug=True)
|
webview.start()
|
||||||
conn = HTTPConnection(url, port)
|
conn = HTTPConnection(url, port)
|
||||||
conn.request('GET', '/shutdown')
|
conn.request('GET', '/shutdown')
|
||||||
t.join()
|
t.join()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
deemix>=1.1.2
|
deemix>=1.1.2
|
||||||
flask
|
flask
|
||||||
flask-socketio
|
flask-socketio
|
||||||
pywebview==3.3.1
|
pywebview>=3.3.1
|
||||||
cefpython3; platform_system == "Windows"
|
cefpython3; platform_system == "Windows"
|
||||||
|
|
2
requirements_gtk.txt
Normal file
2
requirements_gtk.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
-r requirements.txt
|
||||||
|
PyGObject
|
3
requirements_qt.txt
Normal file
3
requirements_qt.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
-r requirements.txt
|
||||||
|
PyQt5
|
||||||
|
pyqtwebengine
|
Loading…
Reference in a new issue