From 8afb4a4c6d00228f9551b9c949c4366ff153acb3 Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Tue, 10 Feb 2026 23:00:58 +0100 Subject: [PATCH] WIP: neutralino linux --- js/accounts/auth.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/accounts/auth.js b/js/accounts/auth.js index 2123cc6..58e694a 100644 --- a/js/accounts/auth.js +++ b/js/accounts/auth.js @@ -52,7 +52,9 @@ export class AuthManager { try { // Check for Linux environment (Neutralino) where popups are often blocked - if (window.NL_OS === 'Linux') { + // Also check User Agent as fallback since NL_OS might not be set if init skipped + if (window.NL_OS === 'Linux' || navigator.userAgent.includes('Linux')) { + console.log('Linux environment detected, using signInWithRedirect'); await signInWithRedirect(auth, provider); // The page will redirect, so no return value needed immediately return;