1
0
Fork 0
mirror of synced 2024-06-03 03:04:42 +12:00
Rare/rare/components/dialogs
loathingKernel 88b6e91530 BrowserLogin: Add dedicated application mode to Rare for the webview login page
Add a sub-application to Rare to launch the webview for logging into EGS.
The sub-application operates similatly to the `laucher` sub-application and
it is autonomous. After a successful login in returns the exchange code
to the standard output to be parsed and used by the login dialog.

The reason this implementation was chosen is because when pywebview uses
pyqtwebengine as the GUI library, we cannot launch it through Rare as
it tries to spawn a QMainWindow inside an existing event loop, which is
prohibited by Qt.

Despite that, EGS login page doesn't work correctly with QtWebEngine,
so on linux default to the GTK backend for pywebview, and this change
helps keeping applications using different toolkits separate.

At this moment, spawning the sub-application blocks the execution of the
main application.

This change should make it easier to authenticate through Rare inside
a gamescope session, such as the steam deck.
2024-02-12 21:51:42 +02:00
..
login BrowserLogin: Add dedicated application mode to Rare for the webview login page 2024-02-12 21:51:42 +02:00
__init__.py lowercase snake case 2021-04-07 22:39:23 +02:00
install_dialog.py InstallDialog: Update widget attribute name 2024-01-21 23:45:38 +02:00
launch_dialog.py Rare: cherry-pick some sourcery suggestions 2024-01-02 17:57:02 +02:00
move_dialog.py Dialogs: Add subtitle label in ButtonDialog 2024-01-21 23:45:23 +02:00
selective_dialog.py SelectiveDialog: Keep the layout of the central widget 2024-01-21 23:45:28 +02:00
uninstall_dialog.py Dialogs: Add subtitle label in ButtonDialog 2024-01-21 23:45:23 +02:00