From 169cd07c42ddf1d0693094badb75f6255c052fac Mon Sep 17 00:00:00 2001 From: tytan652 Date: Sun, 7 May 2023 01:52:23 +0200 Subject: [PATCH] UI: Avoid registering CEF OAuth integrations on Wayland --- UI/auth-restream.cpp | 5 +++++ UI/auth-twitch.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/UI/auth-restream.cpp b/UI/auth-restream.cpp index ed4d39c88..9188da118 100644 --- a/UI/auth-restream.cpp +++ b/UI/auth-restream.cpp @@ -282,6 +282,11 @@ static void DeleteCookies() void RegisterRestreamAuth() { +#if !defined(__APPLE__) && !defined(_WIN32) + if (QApplication::platformName().contains("wayland")) + return; +#endif + OAuth::RegisterOAuth(restreamDef, CreateRestreamAuth, RestreamAuth::Login, DeleteCookies); } diff --git a/UI/auth-twitch.cpp b/UI/auth-twitch.cpp index 034c3d82b..386a0e927 100644 --- a/UI/auth-twitch.cpp +++ b/UI/auth-twitch.cpp @@ -512,6 +512,11 @@ static void DeleteCookies() void RegisterTwitchAuth() { +#if !defined(__APPLE__) && !defined(_WIN32) + if (QApplication::platformName().contains("wayland")) + return; +#endif + OAuth::RegisterOAuth(twitchDef, CreateTwitchAuth, TwitchAuth::Login, DeleteCookies); }