Compare commits

..
Author SHA1 Message Date
Anthony Stirling 89db09a4e6 Fix Linux crash 2026-05-18 23:37:05 +01:00
2 changed files with 17 additions and 14 deletions
+12
View File
@@ -49,6 +49,18 @@ fn dispatch_deep_link(app: &AppHandle, url: &str) {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
#[cfg(target_os = "linux")]
{
use std::env;
// WebKitGTK >= 2.46 DMA-BUF renderer SIGABRTs on KDE 6 + Mesa/NVIDIA; disable unless user opted in.
if env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() {
env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
}
if env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() {
env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
}
}
tauri::Builder::default()
.plugin(
tauri_plugin_log::Builder::new()
@@ -5,10 +5,7 @@ import { tauriBackendService } from "@app/services/tauriBackendService";
import { createBackendNotReadyError } from "@app/constants/backendErrors";
import { operationRouter } from "@app/services/operationRouter";
import { authService } from "@app/services/authService";
import {
connectionModeService,
JWT_EXPIRED_PROMPTED_KEY,
} from "@app/services/connectionModeService";
import { connectionModeService } from "@app/services/connectionModeService";
import {
STIRLING_SAAS_URL,
STIRLING_SAAS_BACKEND_API_URL,
@@ -230,16 +227,10 @@ export function setupApiInterceptors(client: AxiosInstance): void {
return client.request(originalRequest);
}
// Refresh failed - one-shot guard prevents background 401s from re-opening the modal.
if (
typeof localStorage !== "undefined" &&
localStorage.getItem(JWT_EXPIRED_PROMPTED_KEY) !== "true"
) {
localStorage.setItem(JWT_EXPIRED_PROMPTED_KEY, "true");
window.dispatchEvent(
new CustomEvent(OPEN_SIGN_IN_EVENT, { detail: { locked: false } }),
);
}
// Refresh failed - prompt for re-authentication via the sign-in modal.
window.dispatchEvent(
new CustomEvent(OPEN_SIGN_IN_EVENT, { detail: { locked: false } }),
);
}
// Handle 403 Forbidden - unauthorized access