From 093127e131c99c0e34dc0c5c2e47974a7b836802 Mon Sep 17 00:00:00 2001 From: Hartmut Bauer Date: Sat, 14 Feb 2026 01:30:38 +0100 Subject: [PATCH] Open auth in browser fallback for Linux --- .../jvmMain/kotlin/net/keinekekse/app/auth/AuthModule.jvm.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/jvmMain/kotlin/net/keinekekse/app/auth/AuthModule.jvm.kt b/shared/src/jvmMain/kotlin/net/keinekekse/app/auth/AuthModule.jvm.kt index f024471..bdf43e1 100644 --- a/shared/src/jvmMain/kotlin/net/keinekekse/app/auth/AuthModule.jvm.kt +++ b/shared/src/jvmMain/kotlin/net/keinekekse/app/auth/AuthModule.jvm.kt @@ -13,7 +13,7 @@ actual fun openInBrowser(url: Url) { } val desktop = Desktop.getDesktop() if (!desktop.isSupported(Desktop.Action.BROWSE)) { - // TODO check if Linux -> run xdg-open $url + // fallback for Linux (tested only on Debian 13) if (System.getProperty("os.name").lowercase(Locale.getDefault()).contains("linux")) { // throws at error - that's all that matters here ExecutionResult(listOf("xdg-open", url.toString()))